MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / createConvexMesh

Method createConvexMesh

physx/samples/pxtoolkit/src/PxTkStream.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90PxConvexMesh* PxToolkit::createConvexMesh(PxPhysics& physics, PxCooking& cooking, const PxVec3* verts, PxU32 vertCount, PxConvexFlags flags)
91{
92 PxConvexMeshDesc convexDesc;
93 convexDesc.points.count = vertCount;
94 convexDesc.points.stride = sizeof(PxVec3);
95 convexDesc.points.data = verts;
96 convexDesc.flags = flags;
97 return cooking.createConvexMesh(convexDesc, physics.getPhysicsInsertionCallback());
98}
99
100PxConvexMesh* PxToolkit::createConvexMeshSafe(PxPhysics& physics, PxCooking& cooking, const PxVec3* verts, PxU32 vertCount, PxConvexFlags flags, PxU32 vLimit)
101{

Callers 2

createConvexMeshFunction · 0.45
createConvexMeshSafeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected