'\" t
.\"     Title: BOT_FACE_SORT
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 08/28/2023
.\"    Manual: BRL-CAD User Commands
.\"    Source: BRL-CAD
.\"  Language: English
.\"
.TH "BOT_FACE_SORT" "nged" "08/28/2023" "BRL\-CAD" "BRL\-CAD User Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "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\&.
.SH "SYNOPSIS"
.HP \w'\fBbot_face_sort\fR\ 'u
\fBbot_face_sort\fR {\fItriangles_per_piece\fR} {\fIbot_primitive1>\fR} [\fIbot_primitive2\ bot_primitive3\fR...]
.SH "DESCRIPTION"
.PP
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\&.
.SH "EXAMPLES"
.PP
The example shows the use of the
\fBbot_face_sort\fR
command to sort the list of triangles that constitutes the BOT primitive to optimize it for raytracing\&.
.PP
\fBExample\ \&1.\ \&Sorting the faces of two primitives (each having four triangles per piece) to optimize them for raytracing\fR
.PP
mged> \fBbot_face_sort 4 bot1 bot2\fR
.RS 4
The faces of
\fIbot1\fR
and
\fIbot2\fR
to optimize them for raytracing with four triangles per piece\&.
.RE
.SH "AUTHOR"
.PP
BRL\-CAD Team
.SH "BUG REPORTS"
.PP
Reports of bugs or problems should be submitted via electronic mail to
devs@brlcad\&.org
