Get Vertices of a Mesh without unsave code

Beauty

03-06-2009 21:33:07

In the wiki a source code how to get some informations of a mesh.
[url=http://www.ogre3d.org/wiki/index.php/Raycasting_to_the_polygon_level_]http://www.ogre3d.org/wiki/index.php/Raycasting_to_the_polygon_level_(Mogre)#GetMeshInformation

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?

boyamer

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,
Cheers