Open CASCADE Technology 7.9.1
Loading...
Searching...
No Matches
BVH_Set< T, N > Class Template Referenceabstract

Set of abstract entities (bounded by BVH boxes). This is the minimal geometry interface needed to construct BVH. More...

#include <BVH_Set.hxx>

Inheritance diagram for BVH_Set< T, N >:

Public Types

typedef BVH_Box< T, N > BVH_BoxNt

Public Member Functions

 BVH_Set ()
 Creates new abstract set of objects.
virtual ~BVH_Set ()
 Releases resources of set of objects.
virtual BVH_Box< T, N > Box () const
 Returns AABB of the entire set of objects.
virtual Standard_Integer Size () const =0
 Returns total number of objects.
virtual BVH_Box< T, N > Box (const Standard_Integer theIndex) const =0
 Returns AABB of the given object.
virtual T Center (const Standard_Integer theIndex, const Standard_Integer theAxis) const =0
 Returns centroid position along the given axis.
virtual void Swap (const Standard_Integer theIndex1, const Standard_Integer theIndex2)=0
 Performs transposing the two given objects in the set.

Detailed Description

template<class T, int N>
class BVH_Set< T, N >

Set of abstract entities (bounded by BVH boxes). This is the minimal geometry interface needed to construct BVH.

Template Parameters
TNumeric data type
NVector dimension

Member Typedef Documentation

◆ BVH_BoxNt

template<class T, int N>
typedef BVH_Box<T, N> BVH_Set< T, N >::BVH_BoxNt

Constructor & Destructor Documentation

◆ BVH_Set()

template<class T, int N>
BVH_Set< T, N >::BVH_Set ( )
inline

Creates new abstract set of objects.

◆ ~BVH_Set()

template<class T, int N>
virtual BVH_Set< T, N >::~BVH_Set ( )
inlinevirtual

Releases resources of set of objects.

Member Function Documentation

◆ Box() [1/2]

◆ Box() [2/2]

template<class T, int N>
virtual BVH_Box< T, N > BVH_Set< T, N >::Box ( const Standard_Integer theIndex) const
pure virtual

Returns AABB of the given object.

Implemented in BVH_ObjectSet< T, N >, BVH_Triangulation< T, N >, and BVH_Triangulation< Standard_ShortReal, 3 >.

◆ Center()

◆ Size()

◆ Swap()


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