29#ifndef PX_CONVEX_MESH_H
30#define PX_CONVEX_MESH_H
35#include "foundation/Px.h"
36#include "common/PxBase.h"
159 virtual const PxReal*
getSDF()
const = 0;
177 virtual ~PxConvexMesh() {}
Class representing 3D range or axis aligned bounding box.
Definition PxBounds3.h:58
A convex mesh.
Definition PxConvexMesh.h:83
virtual PxBounds3 getLocalBounds() const =0
Returns the local-space (vertex space) AABB from the convex mesh.
virtual PxU32 getNbVertices() const =0
Returns the number of vertices.
virtual void release()=0
Decrements the reference count of a convex mesh and releases it if the new reference count is zero.
virtual const char * getConcreteTypeName() const
Returns string name of dynamic type.
Definition PxConvexMesh.h:162
virtual const PxReal * getSDF() const =0
Returns the local-space Signed Distance Field for this mesh if it has one.
virtual const PxVec3 * getVertices() const =0
Returns the vertices.
virtual bool getPolygonData(PxU32 index, PxHullPolygon &data) const =0
Returns the polygon data.
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxConvexMesh.h:178
virtual const PxU8 * getIndexBuffer() const =0
Returns the index buffer.
virtual PxU32 getNbPolygons() const =0
Returns the number of polygons.
virtual void getMassInformation(PxReal &mass, PxMat33 &localInertia, PxVec3 &localCenterOfMass) const =0
Returns the mass properties of the mesh assuming unit density.
virtual bool isGpuCompatible() const =0
This method decides whether a convex mesh is gpu compatible. If the total number of vertices are more...
3x3 matrix class
Definition PxMat33.h:91
Base class for ref-counted objects.
Definition PxBase.h:200
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxBase.h:231
3 Element vector class.
Definition PxVec3.h:50
#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
Polygon data.
Definition PxConvexMesh.h:50
PxU16 mIndexBase
Offset in index buffer.
Definition PxConvexMesh.h:53
PxU16 mNbVerts
Number of vertices/edges in the polygon.
Definition PxConvexMesh.h:52
PxReal mPlane[4]
Plane equation for this polygon.
Definition PxConvexMesh.h:51