Jump to content
  • Advertisement
Sign in to follow this  

Trying to extract the vertex index from a freeform mesh [GLSCENE]

This topic is 3780 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I was wondering if you could help me on this. I am trying to save a simple OBJ file with the following typical structure. v 10 10 10 v 20 20 20 v 20 20 20 ... f 0 1 2 f 2 3 4 f ... The data are derived from a freeform mesh (loaded using GLScene). I can extract the vertices coordinates using triangles:=form1.GLFreeForm1.MeshObjects[0].ExtractTriangles(); for x:= 0 to triangles.count-1 do begin a := triangles.Items[x]; writeln (gdame,'v ',a[0],' ',a[1],' ',a[2]); end; but I cannot find the faces index are stored. Any ideas onthis? Cheers

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!