Page 1 of 1

Add/remove vertices to BvhTriangleMeshShape (not modify!)

Posted: Tue Jan 03, 2012 1:11 pm
by dumbo2007
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.