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

the encoding of the children of AABB-tree nodes More...

#include <MRMesh/MRAABBTreeNode.h>

Inheritance diagram for MR::AABBTreeChildEncoding:

Static Public Member Functions

static bool isLeaf (NodeId child)
 returns true if given child of a node is a leaf rather than another node
static size_t leafIndex (NodeId child)
 returns the index in the vector of leaves of the leaf encoded in given child of a node
static NodeId leafChild (size_t leafIndex)
 encodes given index in the vector of leaves as a child of a node

Detailed Description

the encoding of the children of AABB-tree nodes

Member Function Documentation

◆ isLeaf()

bool MR::AABBTreeChildEncoding::isLeaf ( NodeId child)
inlinestaticnodiscard

returns true if given child of a node is a leaf rather than another node

◆ leafChild()

NodeId MR::AABBTreeChildEncoding::leafChild ( size_t leafIndex)
inlinestaticnodiscard

encodes given index in the vector of leaves as a child of a node

◆ leafIndex()

size_t MR::AABBTreeChildEncoding::leafIndex ( NodeId child)
inlinestaticnodiscard

returns the index in the vector of leaves of the leaf encoded in given child of a node


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