BOT_FACE_SORT

## Name

bot_face_sort — Sorts the list of triangles that constitutes the BOT primitive to optimize it for raytracing with the specified number of triangles per piece.

## Synopsis

`bot_face_sort` { `triangles_per_piece`} { `bot_primitive1>`} [ `bot_primitive2 bot_primitive3`...]

## DESCRIPTION

Used to sort the list of triangles that constitutes the BOT primitive to optimize it for raytracing with the specified number of triangles per piece. Most BRL-CAD primitives are treated as a single object when a model is being prepared for raytracing, but BOT primitives are normally broken into "pieces" to improve performance. The raytracer normally uses four triangles per piece.

## EXAMPLES

The example shows the use of the bot_face_sort command to sort the list of triangles that constitutes the BOT primitive to optimize it for raytracing.

Example 1. Sorting the faces of two primitives (each having four triangles per piece) to optimize them for raytracing

`mged>` `bot_face_sort 4 bot1 bot2`

  The faces of bot1 and bot2 to optimize them for raytracing with four triangles per piece.

## AUTHOR

BRL-CAD Team

## BUG REPORTS

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