TriangleMesh.GetVerticesAndIndicesFromMesh()

Post and discuss features you'd like to see in the BEPUphysics library.
Post Reply
NetSavant
Posts: 28
Joined: Wed Apr 20, 2011 10:50 pm

TriangleMesh.GetVerticesAndIndicesFromMesh()

Post by NetSavant »

Just a quickie suggestion - the static method on TriangleMesh to get verts and indices from a Model is handy - would be cool to have one to read in vertices for a particular Mesh too, for models that are parsed apart into different pieces.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: TriangleMesh.GetVerticesAndIndicesFromMesh()

Post by Norbo »

There actually is an internal "AddMesh" version which is used by the main GetVerticesAndIndicesFromModel method. There's no particular reason why it's internal; I'll switch it around in the next development version. In the mean time, it should only require changing the 'internal' to 'public' if you'd like to make the change yourself locally.
NetSavant
Posts: 28
Joined: Wed Apr 20, 2011 10:50 pm

Re: TriangleMesh.GetVerticesAndIndicesFromMesh()

Post by NetSavant »

Thanks - ended up writing a static utility method that calls that AddMesh() method, worked good.
Post Reply