|
Blender V4.3
|
#include <node.h>
Inherits BVHNode.
Public Member Functions | |
| LeafNode (const BoundBox &bounds, uint visibility, int lo, int hi) | |
| LeafNode (const LeafNode &other) | |
| bool | is_leaf () const |
| int | num_children () const |
| BVHNode * | get_child (int) const |
| int | num_triangles () const |
| void | print (int depth) const |
Public Member Functions inherited from BVHNode | |
| virtual | ~BVHNode () |
| void | set_aligned_space (const Transform &aligned_space) |
| Transform | get_aligned_space () const |
| bool | has_unaligned () const |
| int | getSubtreeSize (BVH_STAT stat=BVH_STAT_NODE_COUNT) const |
| float | computeSubtreeSAHCost (const BVHParams &p, float probability=1.0f) const |
| void | deleteSubtree () |
| uint | update_visibility () |
| void | update_time () |
| void | dump_graph (const char *filename) |
Public Attributes | |
| int | lo |
| int | hi |
| unsigned short | edge_parity: 12 |
| unsigned short | primary_edge_intersections: 3 |
| unsigned short | in_process: 1 |
| char | signs |
| int | minimizer_index |
| unsigned short | flood_fill |
| float | edge_intersections [0] |
Public Attributes inherited from BVHNode | |
| struct BVHNode ** | children |
| struct BVHNode * | parent |
| float * | bv |
| int | index |
| char | node_num |
| char | main_axis |
| BoundBox | bounds |
| uint | visibility |
| bool | is_unaligned |
| Transform * | aligned_space |
| float | time_from |
| float | time_to |
Additional Inherited Members | |
Protected Member Functions inherited from BVHNode | |
| BVHNode (const BoundBox &bounds) | |
| BVHNode (const BVHNode &other) | |
Bits order
Leaf node: Byte 0,1(0-11): edge parity Byte 1(4,5,6): mask of primary edges intersections stored Byte 1(7): in flood fill mode, whether the cell is in process Byte 2(0-8): signs Byte 3,4: in coloring mode, the mask for edges Byte 5: edge intersections(4 bytes per inter, or 12 bytes if USE_HERMIT)
Definition at line 208 of file bvh/node.h.
Definition at line 210 of file bvh/node.h.
References BVHNode::bounds, and BVHNode::visibility.
|
inline |
Definition at line 217 of file bvh/node.h.
|
inlinevirtual |
Implements BVHNode.
Definition at line 219 of file bvh/node.h.
|
inlinevirtual |
Implements BVHNode.
Definition at line 223 of file bvh/node.h.
|
inlinevirtual |
Reimplemented from BVHNode.
Definition at line 231 of file bvh/node.h.
Referenced by BVH2::pack_leaf().
|
virtual |
| int LeafNode::hi |
Definition at line 238 of file bvh/node.h.
Referenced by BVHBuild::create_leaf_node(), num_triangles(), BVH2::pack_leaf(), and print().
| int LeafNode::lo |
Definition at line 237 of file bvh/node.h.
Referenced by BVHBuild::create_leaf_node(), num_triangles(), BVH2::pack_leaf(), and print().