Open CASCADE Technology
6.9.0
|
Triangulation as an example of BVH primitive set. More...
#include <BVH_Triangulation.hxx>
Public Types | |
typedef BVH::VectorType< T, N > ::Type | BVH_VecNt |
Public Types inherited from BVH_Set< T, N > | |
typedef BVH_Box< T, N > | BVH_BoxNt |
Public Member Functions | |
BVH_Triangulation () | |
Creates empty triangulation. More... | |
virtual | ~BVH_Triangulation () |
Releases resources of triangulation. More... | |
virtual Standard_Integer | Size () const |
Returns total number of triangles. More... | |
virtual BVH_Box< T, N > | Box (const Standard_Integer theIndex) const |
Returns AABB of the given triangle. More... | |
virtual T | Center (const Standard_Integer theIndex, const Standard_Integer theAxis) const |
Returns centroid position along the given axis. More... | |
virtual void | Swap (const Standard_Integer theIndex1, const Standard_Integer theIndex2) |
Performs transposing the two given triangles in the set. More... | |
Public Member Functions inherited from BVH_PrimitiveSet< T, N > | |
BVH_PrimitiveSet () | |
Creates set of abstract primitives. More... | |
virtual | ~BVH_PrimitiveSet () |
Releases resources of set of abstract primitives. More... | |
virtual BVH_Box< T, N > | Box () const |
Returns AABB of primitive set. More... | |
virtual const NCollection_Handle< BVH_Tree < T, N > > & | BVH () |
Returns BVH tree (and builds it if necessary). More... | |
virtual const NCollection_Handle < BVH_Builder< T, N > > & | Builder () const |
Returns the method (builder) used to construct BVH. More... | |
virtual void | SetBuilder (NCollection_Handle< BVH_Builder< T, N > > &theBuilder) |
Sets the method (builder) used to construct BVH. More... | |
Public Member Functions inherited from BVH_Object< T, N > | |
BVH_Object () | |
Creates new abstract geometric object. More... | |
virtual | ~BVH_Object ()=0 |
Releases resources of geometric object. More... | |
virtual const NCollection_Handle < BVH_Properties > & | Properties () const |
Returns properties of the geometric object. More... | |
virtual void | SetProperties (const NCollection_Handle< BVH_Properties > &theProperties) |
Sets properties of the geometric object. More... | |
virtual void | MarkDirty () |
Marks object state as outdated (needs BVH rebuilding). More... | |
Public Member Functions inherited from BVH_Set< T, N > | |
BVH_Set () | |
Creates new abstract set of objects. More... | |
virtual | ~BVH_Set ()=0 |
Releases resources of set of objects. More... | |
Data Fields | |
BVH::ArrayType< T, N >::Type | Vertices |
Array of vertex coordinates. More... | |
BVH_Array4i | Elements |
Array of indices of triangle vertices. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from BVH_PrimitiveSet< T, N > | |
virtual void | Update () |
Updates BVH of primitive set. More... | |
Protected Attributes inherited from BVH_PrimitiveSet< T, N > | |
NCollection_Handle< BVH_Tree < T, N > > | myBVH |
Constructed bottom-level BVH. More... | |
NCollection_Handle < BVH_Builder< T, N > > | myBuilder |
Builder for bottom-level BVH. More... | |
BVH_Box< T, N > | myBox |
Cached bounding box of geometric primitives. More... | |
Protected Attributes inherited from BVH_Object< T, N > | |
Standard_Boolean | myIsDirty |
Marks internal object state as outdated. More... | |
NCollection_Handle < BVH_Properties > | myProperties |
Generic properties assigned to the object. More... | |
Triangulation as an example of BVH primitive set.
T | Numeric data type |
N | Vector dimension |
typedef BVH::VectorType<T, N>::Type BVH_Triangulation< T, N >::BVH_VecNt |
BVH_Triangulation< T, N >::BVH_Triangulation | ( | ) |
Creates empty triangulation.
|
virtual |
Releases resources of triangulation.
|
virtual |
Returns AABB of the given triangle.
Implements BVH_Set< T, N >.
|
virtual |
Returns centroid position along the given axis.
Implements BVH_Set< T, N >.
Reimplemented in OpenGl_TriangleSet.
|
virtual |
Returns total number of triangles.
Implements BVH_Set< T, N >.
|
virtual |
Performs transposing the two given triangles in the set.
Implements BVH_Set< T, N >.
BVH_Array4i BVH_Triangulation< T, N >::Elements |
Array of indices of triangle vertices.
BVH::ArrayType<T, N>::Type BVH_Triangulation< T, N >::Vertices |
Array of vertex coordinates.