VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Types | Private Attributes
DtBvhTriangleMeshShape Class Reference
Inheritance diagram for DtBvhTriangleMeshShape:
Inheritance graph
[legend]

Public Types

using Ptr = boost::shared_ptr< DtBvhTriangleMeshShape >
 

Public Member Functions

 DtBvhTriangleMeshShape (DtTriangleMeshWithSoil *mesh, bool useQuantization=true, bool buildBvhNow=false, bool filterTransparentPolygons=false)
 
 ~DtBvhTriangleMeshShape ()
 
bool buildBvh ()
 
bool isBvhBuilt () const
 
int getNumTriangles () const
 

Private Types

using Mutex = tbb::spin_mutex
 

Private Attributes

Mutex myMutex
 
DtTriangleMeshWithSoilmyMesh
 
int myTrianglesCount
 
tbb::atomic< boolmyIsBvhBuilt
 

Member Typedef Documentation

using DtBvhTriangleMeshShape::Mutex = tbb::spin_mutex
private

Constructor & Destructor Documentation

DtBvhTriangleMeshShape::DtBvhTriangleMeshShape ( DtTriangleMeshWithSoil mesh,
bool  useQuantization = true,
bool  buildBvhNow = false,
bool  filterTransparentPolygons = false 
)
DtBvhTriangleMeshShape::~DtBvhTriangleMeshShape ( )

Member Function Documentation

bool DtBvhTriangleMeshShape::buildBvh ( )

Build the bvh with mutex locked. Call as many times as you like, will only build once.

Returns
True if building bvh was successful.
bool DtBvhTriangleMeshShape::isBvhBuilt ( ) const
int DtBvhTriangleMeshShape::getNumTriangles ( ) const

Return the number of triangles of the shape.

Member Data Documentation

Mutex DtBvhTriangleMeshShape::myMutex
mutableprivate
DtTriangleMeshWithSoil* DtBvhTriangleMeshShape::myMesh
private
int DtBvhTriangleMeshShape::myTrianglesCount
private
tbb::atomic<bool> DtBvhTriangleMeshShape::myIsBvhBuilt
private

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)