MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / deleteConvexMesh

Method deleteConvexMesh

src/engine/PhysicsCommon.cpp:689–696  ·  view source on GitHub ↗

Delete a convex mesh * @param convexMesh A pointer to the convex mesh to destroy */

Source from the content-addressed store, hash-verified

687 * @param convexMesh A pointer to the convex mesh to destroy
688 */
689void PhysicsCommon::deleteConvexMesh(ConvexMesh* convexMesh) {
690
691 // Call the destructor of the shape
692 convexMesh->~ConvexMesh();
693
694 // Release allocated memory
695 mMemoryManager.release(MemoryManager::AllocationType::Pool, convexMesh, sizeof(ConvexMesh));
696}
697
698// Create a triangle mesh from a TriangleVertexArray
699/// The data (vertices, faces indices) are copied from the TriangleVertexArray into the created ConvexMesh.

Callers

nothing calls this directly

Calls 2

~ConvexMeshMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected