Skip to documentation
DocumentationAll documentsEnglish

BOT_FLIP(nged)

NAME

bot_flip - Reverse (i.e. flip) all the facet normals within a BOT primitive.

On this page

SYNOPSIS

bot_flip {bot} [bot2 bot3]...

DESCRIPTION

Reverse (i.e. flip) all the facet normals within a BOT primitive. When viewing a BOT with the MGED 'e -m1' or 'draw -m1' command, if all the exterior facets are black and all interior facets are shaded (red by default), then this command will flip the normals resulting in all exterior facets to become shaded and all interior facets to become black. It is recommended to run the commands 'bot_vertex_fuse' then 'bot_face_fuse' before running 'bot_flip'.

Note: using the bot_flip will toggle the orientation of right and left-handed BOT primitives. The orientation of unoriented BOT primitives will not change.

EXAMPLES

Example 1. Flip a BoT whose outward-facing normals are reversed.

mged>bot_flip imported_shell.bot

Reverses every facet normal in imported_shell.bot, which is a common follow-up after finding that the model’s outside faces render as backfaces in shaded mode.

AUTHOR

BRL-CAD Team

BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org