Domain specific subdivision with topology information. More...
#include <iaffinity_information.h>
Inherits mi::base::Interface_declare< 0x25d72982, ... >.
Public Types | |
enum | Topology_type { TOPO_KD_TREE , TOPO_OCTREE } |
Subdivision schemes can rely on different topologies. More... | |
Public Member Functions | |
virtual mi::Uint32 | get_topology_type () const =0 |
Get type of topology,. More... | |
virtual mi::Uint32 | get_nb_nodes () const =0 |
Get the total number of nodes of the topology. More... | |
virtual mi::math::Bbox_struct< mi::Float32, 3 > | get_node_box (mi::Uint32 inode) const =0 |
Get the bounding box of the node inode . More... | |
virtual mi::Uint32 | get_node_child_count (mi::Uint32 inode) const =0 |
Get the number of children of node inode . More... | |
virtual mi::Sint32 | get_node_child (mi::Uint32 inode, mi::Uint32 ichild) const =0 |
Get a child index of the node inode . More... | |
virtual mi::Sint32 | get_node_subregion_index (mi::Uint32 inode) const =0 |
Get index of subregion associated with node inode (or -1, if no subregion). More... | |
Domain specific subdivision with topology information.
This interface extends IDomain_specific_subdivision by providing topology information for efficient subregion sorting.
|
pure virtual |
Get the total number of nodes of the topology.
It is assumed that the first node is the root node.
|
pure virtual |
Get the bounding box of the node inode
.
inode | The node's index value. |
|
pure virtual |
Get a child index of the node inode
.
Return -1 if no child at given ichild
slot.
inode | Index of node. |
ichild | Index of child slot. |
|
pure virtual |
Get the number of children of node inode
.
Note that this expresses the number of available child slots, but not the number of valid children. This means for a Kd-tree, you can always return 2, and for an Octree 8.
inode | The node's index value. |
|
pure virtual |
Get index of subregion associated with node inode
(or -1, if no subregion).
The subregions are provided by the IDomain_specific_subdivision interface.
inode | Index of node. |
|
pure virtual |
Get type of topology,.