29#ifndef PX_CONVEX_MESH_GEOMETRY_H
30#define PX_CONVEX_MESH_GEOMETRY_H
34#include "geometry/PxGeometry.h"
35#include "geometry/PxMeshScale.h"
36#include "common/PxCoreUtilityTypes.h"
37#include "geometry/PxConvexMesh.h"
107 convexMesh (that.convexMesh),
108 meshFlags (that.meshFlags)
145 if(mType != PxGeometryType::eCONVEXMESH)
149 if(!
scale.isValidForConvexMesh())
Convex mesh geometry class.
Definition PxConvexMeshGeometry.h:79
PxMeshScale scale
The scaling transformation (from vertex space to shape space).
Definition PxConvexMeshGeometry.h:136
PX_INLINE PxConvexMeshGeometry(PxConvexMesh *mesh=NULL, const PxMeshScale &scaling=PxMeshScale(), PxConvexMeshGeometryFlags flags=PxConvexMeshGeometryFlag::eTIGHT_BOUNDS)
Constructor. By default creates an empty object with a NULL mesh and identity scale.
Definition PxConvexMeshGeometry.h:89
PxConvexMeshGeometryFlags meshFlags
Mesh flags.
Definition PxConvexMeshGeometry.h:138
PX_INLINE bool isValid() const
Returns true if the geometry is valid.
Definition PxConvexMeshGeometry.h:143
PX_INLINE PxConvexMeshGeometry(const PxConvexMeshGeometry &that)
Copy constructor.
Definition PxConvexMeshGeometry.h:104
PX_INLINE void operator=(const PxConvexMeshGeometry &that)
Assignment operator.
Definition PxConvexMeshGeometry.h:115
PxConvexMesh * convexMesh
A reference to the convex mesh object.
Definition PxConvexMeshGeometry.h:137
PxPadding< 3 > paddingFromFlags
padding for mesh flags
Definition PxConvexMeshGeometry.h:139
A convex mesh.
Definition PxConvexMesh.h:83
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
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< PxConvexMeshGeometryFlag::Enum, PxU8 > PxConvexMeshGeometryFlags
collection of set bits defined in PxConvexMeshGeometryFlag.
Definition PxConvexMeshGeometry.h:64
Flags controlling the simulated behavior of the convex mesh geometry.
Definition PxConvexMeshGeometry.h:52
Enum
Definition PxConvexMeshGeometry.h:54
@ eTIGHT_BOUNDS
Use tighter (but more expensive to compute) bounds around the convex geometry.
Definition PxConvexMeshGeometry.h:55
A geometry type.
Definition PxGeometry.h:50
Definition PxCoreUtilityTypes.h:103