bounding volume hierarchy for line segments More...
#include <MRAABBTreePolyline.h>
Public Member Functions | |
MRMESH_API | AABBTreePolyline (const typename PolylineTraits< V >::Polyline &polyline) |
creates tree for given polyline | |
AABBTreePolyline (AABBTreePolyline &&) noexcept=default | |
AABBTreePolyline & | operator= (AABBTreePolyline &&) noexcept=default |
Public Member Functions inherited from MR::AABBTreeBase< LineTreeTraits< V > > | |
const NodeVec & | nodes () const |
const-access to all nodes | |
const Node & | operator[] (NodeId nid) const |
const-access to any node | |
BoxT | getBoundingBox () const |
returns the root node bounding box | |
size_t | heapBytes () const |
returns the amount of memory this object occupies on heap | |
size_t | numLeaves () const |
returns the number of leaves in whole tree | |
MRMESH_API std::vector< NodeId > | getSubtrees (int minNum) const |
returns at least given number of top-level not-intersecting subtrees, union of which contain all tree leaves | |
MRMESH_API LeafBitSet | getSubtreeLeaves (NodeId subtreeRoot) const |
returns all leaves in the subtree with given root | |
MRMESH_API NodeBitSet | getNodesFromLeaves (const LeafBitSet &leaves) const |
returns set of nodes containing among direct or indirect children given leaves | |
MRMESH_API void | getLeafOrder (LeafBMap &leafMap) const |
MRMESH_API void | getLeafOrderAndReset (LeafBMap &leafMap) |
Public Attributes | |
MRMESH_API AABBTreePolyline(const Mesh &mesh, const UndirectedEdgeBitSet &edgeSet) MR_REQUIRES_IF_SUPPORTED( | AABBTreePolyline )()=default |
creates tree for selected edges on the mesh (only for 3d tree) | |
Friends | |
class | UniqueThreadSafeOwner< AABBTreePolyline > |
Additional Inherited Members | |
Public Types inherited from MR::AABBTreeBase< LineTreeTraits< V > > | |
using | Traits |
using | Node |
using | NodeVec |
using | LeafTag |
using | LeafId |
using | LeafBitSet |
using | LeafBMap |
using | BoxT |
Static Public Member Functions inherited from MR::AABBTreeBase< LineTreeTraits< V > > | |
static NodeId | rootNodeId () |
returns root node id | |
Protected Attributes inherited from MR::AABBTreeBase< LineTreeTraits< V > > | |
NodeVec | nodes_ |
bounding volume hierarchy for line segments
|
explicit |
creates tree for given polyline
|
defaultnoexcept |
|
defaultnoexcept |
|
friend |
|
default |
creates tree for selected edges on the mesh (only for 3d tree)