|
BRL-CAD
|
#include <space_partition.h>
Data Fields | |
| int | cn_type |
| int | cn_axis |
| 0, 1, 2 = cut along X, Y, Z | |
| fastf_t | cn_point |
| cut through axis==point | |
| union cutter * | cn_l |
| val < point | |
| union cutter * | cn_r |
| val >= point | |
Structures for space subdivision.
RT_PART_NUBSPT uses CUT_CUTNODE interior nodes and CUT_BOXNODE leaves. RT_PART_NULL intentionally uses one CUT_BOXNODE leaf covering the whole model so the ray shooting path can evaluate a no-op spatial partitioning baseline without a separate primitive-list traversal.
cut_type is an integer for efficiency of access in rt_shootray() on non-word addressing machines.
If a solid has 'pieces', it will be listed either in bn_list (initially), or in bn_piecelist, but not both.
Definition at line 53 of file space_partition.h.
| int cn_type |
Definition at line 54 of file space_partition.h.
| int cn_axis |
0, 1, 2 = cut along X, Y, Z
Definition at line 55 of file space_partition.h.
| fastf_t cn_point |
cut through axis==point
Definition at line 56 of file space_partition.h.
val < point
Definition at line 57 of file space_partition.h.
val >= point
Definition at line 58 of file space_partition.h.