Skip to documentation
DocumentationAll documentsEnglish

BOT_SYNC(nged)

NAME

bot_sync - Synchronizes the normals of all facets within a BOT primitive so they are all in the same direction.

On this page

SYNOPSIS

bot_sync {bot} [bot2 bot3]...

DESCRIPTION

Synchronizes the normals of all facets within a BOT primitive so they are all in the same direction. When viewing a BOT with the MGED 'e -m1' or 'draw -m1' command, if some of the exterior facets are black and some shaded (red by default), this indicates the black facets have their normal in the wrong direction. To correct this, it is recommended to first run the commands 'bot_vertex_fuse' then 'bot_face_fuse' followed by 'bot_sync'. If the result is all exterior facets are black, then use the MGED 'bot_flip' command to reverse (i.e. flip) all the BOT facet normals. The result should be all exterior facets become shaded.

EXAMPLES

Example 1. Normalize facet winding before checking overall orientation.

mged>bot_sync imported_mesh.bot

Synchronizes neighboring facet normals in imported_mesh.bot so they all point consistently, making it easier to see whether a later bot_flip is needed.

AUTHOR

BRL-CAD Team

BUG REPORTS

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