If I wanted to increase the number of vertices in a BvhTriangleMeshShape , how would I do that. I know there is partialRefitTree() which will cause the indices and vertices arrays passed to the btTriangleIndexVertexArray, to be re-scanned.
However I want to increase the number of vertices and consequently the number of triangles as well, or remove vertices. Currently if I want to remove vertices and make the mesh smaller, then that would not be possible with partialRefitTree().
So how can it be done ?
Thanks.
Add/remove vertices to BvhTriangleMeshShape (not modify!)
-
- Posts: 66
- Joined: Sun Jan 30, 2011 8:46 pm