29#ifndef GU_CONVEXHELPER_H
30#define GU_CONVEXHELPER_H
32#include "GuShapeConvex.h"
36 class PxConvexMeshGeometry;
41 void getScaledConvex( PxVec3*& scaledVertices, PxU8*& scaledIndices, PxVec3* dstVertices, PxU8* dstIndices,
42 bool idtConvexScale,
const PxVec3* srcVerts,
const PxU8* srcIndices, PxU32 nbVerts,
const Cm::FastVertex2ShapeScaling& convexScaling);
45 #define GET_SCALEX_CONVEX(scaledVertices, stackIndices, idtScaling, nbVerts, scaling, srcVerts, srcIndices) \
46 getScaledConvex(scaledVertices, stackIndices, \
47 idtScaling ? NULL : reinterpret_cast<PxVec3*>(PxAlloca(nbVerts * sizeof(PxVec3))), \
48 idtScaling ? NULL : reinterpret_cast<PxU8*>(PxAlloca(nbVerts * sizeof(PxU8))), \
49 idtScaling, srcVerts, srcIndices, nbVerts, scaling);
51 bool getConvexData(
const PxConvexMeshGeometry& shapeConvex, Cm::FastVertex2ShapeScaling& scaling, PxBounds3& bounds, PolygonalData& polyData);
3 Element vector class.
Definition PxVec3.h:50
#define PX_RESTRICT
Definition PxPreprocessor.h:355
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Definition GuConvexHelper.h:54
Definition GuConvexMeshData.h:49