RavEngine
Loading...
Searching...
No Matches
physx::PxTetrahedronMeshGeometry Class Reference

Tetrahedron mesh geometry class. More...

#include <PxTetrahedronMeshGeometry.h>

Inheritance diagram for physx::PxTetrahedronMeshGeometry:
[legend]
Collaboration diagram for physx::PxTetrahedronMeshGeometry:
[legend]

Public Member Functions

PX_INLINE PxTetrahedronMeshGeometry (PxTetrahedronMesh *mesh=NULL)
 Constructor. By default creates an empty object with a NULL mesh and identity scale.
 
PX_INLINE PxTetrahedronMeshGeometry (const PxTetrahedronMeshGeometry &that)
 Copy constructor.
 
PX_INLINE void operator= (const PxTetrahedronMeshGeometry &that)
 Assignment operator.
 
PX_INLINE bool isValid () const
 Returns true if the geometry is valid.
 
- Public Member Functions inherited from physx::PxGeometry
PX_CUDA_CALLABLE PX_FORCE_INLINE PxGeometryType::Enum getType () const
 Returns the type of the geometry.
 
PX_INLINE void operator= (const PxGeometry &that)
 Assignment operator.
 

Public Attributes

PxTetrahedronMesh * tetrahedronMesh
 A reference to the mesh object.
 
- Public Attributes inherited from physx::PxGeometry
float mTypePadding
 

Additional Inherited Members

- Protected Member Functions inherited from physx::PxGeometry
PX_CUDA_CALLABLE PX_FORCE_INLINE PxGeometry (PxGeometryType::Enum type)
 
PX_CUDA_CALLABLE PX_FORCE_INLINE PxGeometry (const PxGeometry &that)
 
- Protected Attributes inherited from physx::PxGeometry
PxGeometryType::Enum mType
 

Detailed Description

Tetrahedron mesh geometry class.

This class wraps a tetrahedron mesh such that it can be used in contexts where a PxGeometry type is needed.

Constructor & Destructor Documentation

◆ PxTetrahedronMeshGeometry()

PX_INLINE physx::PxTetrahedronMeshGeometry::PxTetrahedronMeshGeometry ( const PxTetrahedronMeshGeometry &  that)
inline

Copy constructor.

Parameters
[in]thatOther object

Member Function Documentation

◆ isValid()

PX_INLINE bool physx::PxTetrahedronMeshGeometry::isValid ( ) const

Returns true if the geometry is valid.

Returns
True if the current settings are valid for shape creation.
Note
A valid tetrahedron mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a tetrahedron mesh that has zero extents in any direction.
See also
PxRigidActor::createShape, PxPhysics::createShape

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