BRL-CAD
Loading...
Searching...
No Matches

#include <rt_instance.h>

Collaboration diagram for rt_i:
[legend]

Data Fields

uint32_t rti_magic
 magic # for integrity check
 
int useair
 1="air" regions are retained while prepping
 
int rti_save_overlaps
 1=fill in pt_overlap_reg, change boolweave behavior
 
int rti_dont_instance
 1=Don't compress instances of solids into 1 while prepping
 
int rti_hasty_prep
 1=hasty prep, slower ray-trace
 
size_t rti_nlights
 number of light sources
 
int rti_prismtrace
 add support for pixel prism trace
 
charrti_region_fix_file
 rt_regionfix() file or NULL
 
int rti_space_partition
 space partitioning method
 
struct bn_tol rti_tol
 Math tolerances for this model.
 
struct bg_tess_tol rti_ttol
 Tessellation tolerance defaults.
 
fastf_t rti_max_beam_radius
 Max threat radius for FASTGEN cline solid.
 
rti_clbk_t rti_gettrees_clbk
 Optional user clbk function called during rt_gettrees_and_attrs.
 
voidrti_udata
 ptr for user data.
 
point_t mdl_min
 min corner of model bounding RPP
 
point_t mdl_max
 max corner of model bounding RPP
 
point_t rti_pmin
 for plotting, min RPP
 
point_t rti_pmax
 for plotting, max RPP
 
double rti_radius
 radius of model bounding sphere
 
struct db_irti_dbip
 prt to Database instance struct
 
int needprep
 needs rt_prep
 
struct rt_i_stats stats
 geometry counts and ray-shooting counters
 
struct bu_list HeadRegion
 ptr of list of regions in model
 
struct bu_ptbl rti_resources
 list of 'struct resource's encountered
 
struct rt_i_internali
 

Detailed Description

This structure keeps track of almost everything for ray-tracing support: Regions, primitives, model bounding box, statistics.

Definitions for librt which are specific to the particular model being processed, one copy for each model. Initially, a pointer to this is returned from rt_dirbuild().

During gettree processing, the most time consuming step is searching the list of existing solids to see if a new solid is actually an identical instance of a previous solid. Therefore, the list has been divided into several lists. The same macros & hash value that accesses the dbi_Head[] array are used here. The hash value is computed by db_dirhash().

Definition at line 105 of file rt_instance.h.

Field Documentation

◆ rti_magic

uint32_t rti_magic

magic # for integrity check

Definition at line 106 of file rt_instance.h.

◆ useair

int useair

1="air" regions are retained while prepping

Definition at line 108 of file rt_instance.h.

◆ rti_save_overlaps

int rti_save_overlaps

1=fill in pt_overlap_reg, change boolweave behavior

Definition at line 109 of file rt_instance.h.

◆ rti_dont_instance

int rti_dont_instance

1=Don't compress instances of solids into 1 while prepping

Definition at line 110 of file rt_instance.h.

◆ rti_hasty_prep

int rti_hasty_prep

1=hasty prep, slower ray-trace

Definition at line 111 of file rt_instance.h.

◆ rti_nlights

size_t rti_nlights

number of light sources

Definition at line 112 of file rt_instance.h.

◆ rti_prismtrace

int rti_prismtrace

add support for pixel prism trace

Definition at line 113 of file rt_instance.h.

◆ rti_region_fix_file

char* rti_region_fix_file

rt_regionfix() file or NULL

Definition at line 114 of file rt_instance.h.

◆ rti_space_partition

int rti_space_partition

space partitioning method

Definition at line 115 of file rt_instance.h.

◆ rti_tol

struct bn_tol rti_tol

Math tolerances for this model.

Definition at line 116 of file rt_instance.h.

◆ rti_ttol

struct bg_tess_tol rti_ttol

Tessellation tolerance defaults.

Definition at line 117 of file rt_instance.h.

◆ rti_max_beam_radius

fastf_t rti_max_beam_radius

Max threat radius for FASTGEN cline solid.

Definition at line 118 of file rt_instance.h.

◆ rti_gettrees_clbk

rti_clbk_t rti_gettrees_clbk

Optional user clbk function called during rt_gettrees_and_attrs.

Definition at line 119 of file rt_instance.h.

◆ rti_udata

void* rti_udata

ptr for user data.

Definition at line 120 of file rt_instance.h.

◆ mdl_min

point_t mdl_min

min corner of model bounding RPP

Definition at line 122 of file rt_instance.h.

◆ mdl_max

point_t mdl_max

max corner of model bounding RPP

Definition at line 123 of file rt_instance.h.

◆ rti_pmin

point_t rti_pmin

for plotting, min RPP

Definition at line 124 of file rt_instance.h.

◆ rti_pmax

point_t rti_pmax

for plotting, max RPP

Definition at line 125 of file rt_instance.h.

◆ rti_radius

double rti_radius

radius of model bounding sphere

Definition at line 126 of file rt_instance.h.

◆ rti_dbip

struct db_i* rti_dbip

prt to Database instance struct

Definition at line 127 of file rt_instance.h.

◆ needprep

int needprep

needs rt_prep

Definition at line 128 of file rt_instance.h.

◆ stats

struct rt_i_stats stats

geometry counts and ray-shooting counters

Definition at line 129 of file rt_instance.h.

◆ HeadRegion

struct bu_list HeadRegion

ptr of list of regions in model

Definition at line 132 of file rt_instance.h.

◆ rti_resources

struct bu_ptbl rti_resources

list of 'struct resource's encountered

Definition at line 133 of file rt_instance.h.

◆ i

struct rt_i_internal* i

Definition at line 136 of file rt_instance.h.


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