PxConvexMeshGeometry Class Reference

Convex mesh geometry class. More...

#include <PxConvexMeshGeometry.h>

Inheritance diagram for PxConvexMeshGeometry:
Collaboration diagram for PxConvexMeshGeometry:

Public Member Functions

PX_INLINE PxConvexMeshGeometry ()
 Default constructor. More...
 
PX_INLINE PxConvexMeshGeometry (PxConvexMesh *mesh, const PxMeshScale &scaling=PxMeshScale(), PxConvexMeshGeometryFlags flags=PxConvexMeshGeometryFlag::eTIGHT_BOUNDS)
 Constructor. More...
 
PX_INLINE bool isValid () const
 Returns true if the geometry is valid. More...
 
- Public Member Functions inherited from PxGeometry
PX_CUDA_CALLABLE PX_FORCE_INLINE PxGeometryType::Enum getType () const
 Returns the type of the geometry. More...
 

Public Attributes

PxMeshScale scale
 The scaling transformation (from vertex space to shape space). More...
 
PxConvexMeshconvexMesh
 A reference to the convex mesh object. More...
 
PxConvexMeshGeometryFlags meshFlags
 Mesh flags. More...
 
PxPadding< 3 > paddingFromFlags
 padding for mesh flags More...
 

Additional Inherited Members

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

Detailed Description

Convex mesh geometry class.

This class unifies a convex mesh object with a scaling transform, and lets the combined object be used anywhere a PxGeometry is needed.

The scaling is a transform along arbitrary axes contained in the scale object. The vertices of the mesh in geometry (or shape) space is the PxMeshScale::toMat33() transform, multiplied by the vertex space vertices in the PxConvexMesh object.

Constructor & Destructor Documentation

◆ PxConvexMeshGeometry() [1/2]

PX_INLINE PxConvexMeshGeometry::PxConvexMeshGeometry ( )
inline

Default constructor.

Creates an empty object with a NULL mesh and identity scale.

◆ PxConvexMeshGeometry() [2/2]

PX_INLINE PxConvexMeshGeometry::PxConvexMeshGeometry ( PxConvexMesh mesh,
const PxMeshScale scaling = PxMeshScale(),
PxConvexMeshGeometryFlags  flags = PxConvexMeshGeometryFlag::eTIGHT_BOUNDS 
)
inline

Constructor.

Parameters
[in]meshMesh pointer. May be NULL, though this will not make the object valid for shape construction.
[in]scalingScale factor.
[in]flagsMesh flags. \

Member Data Documentation

◆ convexMesh

PxConvexMesh* PxConvexMeshGeometry::convexMesh

A reference to the convex mesh object.

Referenced by PxMassProperties::PxMassProperties().

◆ meshFlags

PxConvexMeshGeometryFlags PxConvexMeshGeometry::meshFlags

Mesh flags.

◆ paddingFromFlags

PxPadding<3> PxConvexMeshGeometry::paddingFromFlags

padding for mesh flags

◆ scale

PxMeshScale PxConvexMeshGeometry::scale

The scaling transformation (from vertex space to shape space).

Referenced by PxMassProperties::PxMassProperties().


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