29#ifndef PX_TRIANGLE_MESH_GEOMETRY_H
30#define PX_TRIANGLE_MESH_GEOMETRY_H
34#include "geometry/PxGeometry.h"
35#include "geometry/PxMeshScale.h"
36#include "common/PxCoreUtilityTypes.h"
107 meshFlags (that.meshFlags),
108 triangleMesh(that.triangleMesh)
143 if(mType != PxGeometryType::eTRIANGLEMESH)
147 if(!
scale.isValidForTriangleMesh())
Container for bitfield flag variables associated with a specific enum type.
Definition PxFlags.h:73
A geometry object.
Definition PxGeometry.h:79
A class expressing a nonuniform scaling transformation.
Definition PxMeshScale.h:69
PxQuat rotation
The orientation of the scaling axes.
Definition PxMeshScale.h:164
PxVec3 scale
A nonuniform scaling.
Definition PxMeshScale.h:163
PX_CUDA_CALLABLE bool isUnit() const
returns true if finite and magnitude is close to unit
Definition PxQuat.h:132
Triangle mesh geometry class.
Definition PxTriangleMeshGeometry.h:81
PX_INLINE void operator=(const PxTriangleMeshGeometry &that)
Assignment operator.
Definition PxTriangleMeshGeometry.h:114
PX_INLINE PxTriangleMeshGeometry(const PxTriangleMeshGeometry &that)
Copy constructor.
Definition PxTriangleMeshGeometry.h:104
PxMeshGeometryFlags meshFlags
Mesh flags.
Definition PxTriangleMeshGeometry.h:136
PxTriangleMesh * triangleMesh
A reference to the mesh object.
Definition PxTriangleMeshGeometry.h:138
PxPadding< 3 > paddingFromFlags
padding for mesh flags
Definition PxTriangleMeshGeometry.h:137
PX_INLINE bool isValid() const
Returns true if the geometry is valid.
Definition PxTriangleMeshGeometry.h:141
PX_INLINE PxTriangleMeshGeometry(PxTriangleMesh *mesh=NULL, const PxMeshScale &scaling=PxMeshScale(), PxMeshGeometryFlags flags=PxMeshGeometryFlags())
Constructor. By default creates an empty object with a NULL mesh and identity scale.
Definition PxTriangleMeshGeometry.h:90
PxMeshScale scale
The scaling transformation.
Definition PxTriangleMeshGeometry.h:135
A triangle mesh, also called a 'polygon soup'.
Definition PxTriangleMesh.h:118
PX_CUDA_CALLABLE PX_INLINE bool isFinite() const
returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
Definition PxVec3.h:156
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxFlags< PxMeshGeometryFlag::Enum, PxU8 > PxMeshGeometryFlags
collection of set bits defined in PxMeshGeometryFlag.
Definition PxTriangleMeshGeometry.h:66
A geometry type.
Definition PxGeometry.h:50
Flags controlling the simulated behavior of the triangle mesh geometry.
Definition PxTriangleMeshGeometry.h:51
Enum
Definition PxTriangleMeshGeometry.h:53
@ eTIGHT_BOUNDS
Use tighter (but more expensive to compute) bounds around the triangle mesh geometry.
Definition PxTriangleMeshGeometry.h:54
@ eDOUBLE_SIDED
Definition PxTriangleMeshGeometry.h:55
Definition PxCoreUtilityTypes.h:103