|
BRL-CAD
|
#include <rt_instance.h>
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 | |
| char * | rti_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. | |
| void * | rti_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_i * | rti_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_internal * | i |
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.
| uint32_t rti_magic |
magic # for integrity check
Definition at line 106 of file rt_instance.h.
| int useair |
1="air" regions are retained while prepping
Definition at line 108 of file rt_instance.h.
| int rti_save_overlaps |
1=fill in pt_overlap_reg, change boolweave behavior
Definition at line 109 of file rt_instance.h.
| int rti_dont_instance |
1=Don't compress instances of solids into 1 while prepping
Definition at line 110 of file rt_instance.h.
| int rti_hasty_prep |
1=hasty prep, slower ray-trace
Definition at line 111 of file rt_instance.h.
| size_t rti_nlights |
number of light sources
Definition at line 112 of file rt_instance.h.
| int rti_prismtrace |
add support for pixel prism trace
Definition at line 113 of file rt_instance.h.
| char* rti_region_fix_file |
rt_regionfix() file or NULL
Definition at line 114 of file rt_instance.h.
| int rti_space_partition |
space partitioning method
Definition at line 115 of file rt_instance.h.
| struct bn_tol rti_tol |
Math tolerances for this model.
Definition at line 116 of file rt_instance.h.
| struct bg_tess_tol rti_ttol |
Tessellation tolerance defaults.
Definition at line 117 of file rt_instance.h.
| fastf_t rti_max_beam_radius |
Max threat radius for FASTGEN cline solid.
Definition at line 118 of file rt_instance.h.
| 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.
| void* rti_udata |
ptr for user data.
Definition at line 120 of file rt_instance.h.
| point_t mdl_min |
min corner of model bounding RPP
Definition at line 122 of file rt_instance.h.
| point_t mdl_max |
max corner of model bounding RPP
Definition at line 123 of file rt_instance.h.
| point_t rti_pmin |
for plotting, min RPP
Definition at line 124 of file rt_instance.h.
| point_t rti_pmax |
for plotting, max RPP
Definition at line 125 of file rt_instance.h.
| double rti_radius |
radius of model bounding sphere
Definition at line 126 of file rt_instance.h.
| struct db_i* rti_dbip |
prt to Database instance struct
Definition at line 127 of file rt_instance.h.
| int needprep |
needs rt_prep
Definition at line 128 of file rt_instance.h.
| struct rt_i_stats stats |
geometry counts and ray-shooting counters
Definition at line 129 of file rt_instance.h.
| struct bu_list HeadRegion |
ptr of list of regions in model
Definition at line 132 of file rt_instance.h.
| struct bu_ptbl rti_resources |
list of 'struct resource's encountered
Definition at line 133 of file rt_instance.h.
| struct rt_i_internal* i |
Definition at line 136 of file rt_instance.h.