MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::AABBTreePoints::Node Struct Reference

#include <MRAABBTreePoints.h>

Public Member Functions

bool leaf () const
 returns true if node represent real points, false if it has child nodes
 
std::pair< int, int > getLeafPointRange () const
 returns [first,last) indices of leaf points
 
void setLeafPointRange (int first, int last)
 sets [first,last) to this node (leaf)
 

Public Attributes

Box3f box
 bounding box of whole subtree
 
NodeId l
 left child node for an inner node, or -(l+1) is the index of the first point in a leaf node
 
NodeId r
 

Member Function Documentation

◆ getLeafPointRange()

std::pair< int, int > MR::AABBTreePoints::Node::getLeafPointRange ( ) const
inline

returns [first,last) indices of leaf points

◆ leaf()

bool MR::AABBTreePoints::Node::leaf ( ) const
inline

returns true if node represent real points, false if it has child nodes

◆ setLeafPointRange()

void MR::AABBTreePoints::Node::setLeafPointRange ( int first,
int last )
inline

sets [first,last) to this node (leaf)

Member Data Documentation

◆ box

Box3f MR::AABBTreePoints::Node::box

bounding box of whole subtree

◆ l

NodeId MR::AABBTreePoints::Node::l

left child node for an inner node, or -(l+1) is the index of the first point in a leaf node

◆ r

NodeId MR::AABBTreePoints::Node::r

right child node for an inner node, or -(r+1) is the index of the last point in a leaf node


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