rt_piecelist Struct Reference
[librt geometry, raytracing]

#include <raytrace.h>

Collaboration diagram for rt_piecelist:

Collaboration graph
[legend]

Data Fields

long magic
long npieces
 number of pieces in pieces[] array
long * pieces
 pieces[npieces], piece indices
soltabstp
 ref back to solid

Detailed Description

R T _ P I E C E L I S T

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 1429 of file raytrace.h.


Field Documentation

long magic
 

Definition at line 1430 of file raytrace.h.

Referenced by rt_ct_populate_box(), and rt_cut_extend().

long npieces
 

number of pieces in pieces[] array

Definition at line 1431 of file raytrace.h.

Referenced by rt_ct_piececount(), rt_ct_populate_box(), rt_cut_extend(), and rt_split_mostly_empty_cells().

long* pieces
 

pieces[npieces], piece indices

Definition at line 1432 of file raytrace.h.

Referenced by rt_ct_populate_box(), rt_cut_extend(), and rt_split_mostly_empty_cells().

struct soltab* stp
 

ref back to solid

Definition at line 1433 of file raytrace.h.

Referenced by insert_in_bsp(), remove_from_bsp(), rt_bot_piece_shot(), rt_ct_populate_box(), rt_cut_extend(), rt_shootray(), and rt_split_mostly_empty_cells().


The documentation for this struct was generated from the following file:
Generated on Mon Sep 18 01:25:15 2006 for BRL-CAD by  doxygen 1.4.6