Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


how to organize 3d geometry?

This topic is 6011 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, i´m a little confused about the organisation of 3d geometry data. i have read that some use this format:
struct MESH
    VERTEX    vertices[];  // the actual coordinates and

                           // texture coords

    TRIANGLE  triangles[]; // that hold the indices to vertices

    VECTOR    normals[];
but how to describe FACES?? i dont understand this relation excatly. for example, if i want to create a cube, i first add the vertices and the vertex is only added to the MESH if it´s coordiante ins´t already in the vertex list? and then i store the indices in the triangle object?? but what´s about faces and how to access them? if i need, for example, to get the vertices for the "left side" of the cube, is this a FACE or a list of vertices?? can anybodyhelp me? thanks & greetings gammastrahler

Share this post

Link to post
Share on other sites

  • 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!