BRL-CAD
rt_piecestate Struct Reference

#include <piece.h>

Collaboration diagram for rt_piecestate:
[legend]

Data Fields

uint32_t magic
 
long ray_seqno
 res_nshootray More...
 
struct soltabstp
 
struct bu_bitvshot
 
fastf_t mindist
 dist ray enters solids bounding volume More...
 
fastf_t maxdist
 dist ray leaves solids bounding volume More...
 
struct rt_htbl htab
 accumulating hits here More...
 
const union cuttercutp
 current bounding volume More...
 

Detailed Description

Holds onto memory re-used by rt_shootray() from shot to shot. One of these for each solid which uses pieces. There is a separate array of these for each cpu. Storage for the bit vectors is pre-allocated at prep time. The array is subscripted by st_piecestate_num. The bit vector is subscripted by values found in rt_piecelist pieces[].

Definition at line 57 of file piece.h.

Field Documentation

◆ magic

uint32_t magic

Definition at line 58 of file piece.h.

◆ ray_seqno

long ray_seqno

res_nshootray

Definition at line 59 of file piece.h.

◆ stp

struct soltab* stp

Definition at line 60 of file piece.h.

◆ shot

struct bu_bitv* shot

Definition at line 61 of file piece.h.

◆ mindist

fastf_t mindist

dist ray enters solids bounding volume

Definition at line 62 of file piece.h.

◆ maxdist

fastf_t maxdist

dist ray leaves solids bounding volume

Definition at line 63 of file piece.h.

◆ htab

struct rt_htbl htab

accumulating hits here

Definition at line 64 of file piece.h.

◆ cutp

const union cutter* cutp

current bounding volume

Definition at line 65 of file piece.h.


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