Page 1 of 1

TriangleMesh.GetVerticesAndIndicesFromMesh()

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

Re: TriangleMesh.GetVerticesAndIndicesFromMesh()

Posted: Thu May 05, 2011 12:07 am
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.

Re: TriangleMesh.GetVerticesAndIndicesFromMesh()

Posted: Fri May 06, 2011 3:59 pm
by NetSavant
Thanks - ended up writing a static utility method that calls that AddMesh() method, worked good.