MeshLib
 
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 leftOrFirst
 
NodeId rightOrLast
 

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

◆ leftOrFirst

NodeId MR::AABBTreePoints::Node::leftOrFirst

◆ rightOrLast

NodeId MR::AABBTreePoints::Node::rightOrLast

child nodes indices if >=0, points indices if < 0


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