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 » Wed May 04, 2011 11:53 pm

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: 4558
Joined: Tue Jul 04, 2006 4:45 am

Re: TriangleMesh.GetVerticesAndIndicesFromMesh()

Post by Norbo » Thu May 05, 2011 12:07 am

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 » Fri May 06, 2011 3:59 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest