BRL-CAD
|
#include <piece.h>
Data Fields | |
uint32_t | magic |
size_t | npieces |
number of pieces in pieces[] array | |
long * | pieces |
pieces[npieces], piece indices | |
struct soltab * | stp |
ref back to solid | |
For each space partitioning cell, there is one of these for each solid in that cell which uses pieces. Storage for the array is allocated at cut time, and never changes.
It is expected that the indices allocated by any solid range from 0..(npieces-1).
The piece indices are used as a subscript into a solid-specific table, and also into the 'shot' bitv of the corresponding rt_piecestate.
The values (subscripts) in pieces[] are specific to a single solid (stp).