Get Vertices of a Mesh without unsave code


03-06-2009 21:33:07

In the wiki a source code how to get some informations of a mesh.

Unfortunately it uses unsave code and I don't want to use this.
I just need the vertex positions of a Mesh (for creating a convex hull).
Is there a way to do it?


03-06-2009 22:38:41

well,i must tell you that you can't,i already created convex hulls with Mogre and Managed PhysX and it works fine,without use unsafe wouldn't be possible
because HardwareVertexBuffer.Lock(LockOptions) returns Void*,that can be converted into IntPtr using .ToPointer(),HardwareIndexBuffer Lock functions does the same,if you find any way let me know..

Hope it helps,