BRL-CAD
rt_piecelist Struct Reference

#include <piece.h>

Collaboration diagram for rt_piecelist:
[legend]

Data Fields

uint32_t magic
 
size_t npieces
 number of pieces in pieces[] array More...
 
long * pieces
 pieces[npieces], piece indices More...
 
struct soltabstp
 ref back to solid More...
 

Detailed Description

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).

Definition at line 84 of file piece.h.

Field Documentation

◆ magic

uint32_t magic

Definition at line 85 of file piece.h.

◆ npieces

size_t npieces

number of pieces in pieces[] array

Definition at line 86 of file piece.h.

◆ pieces

long* pieces

pieces[npieces], piece indices

Definition at line 87 of file piece.h.

◆ stp

struct soltab* stp

ref back to solid

Definition at line 88 of file piece.h.


The documentation for this struct was generated from the following file: