Dynamically generate Triangle Lists for a Complex 3D Mesh

Posted by Vulcan Eager on Stack Overflow See other posts from Stack Overflow or by Vulcan Eager
Published on 2010-05-11T09:22:15Z Indexed on 2010/06/07 15:22 UTC
Read the original article Hit count: 183

Filed under:
|
|
|
|

In my application, I have the shape and dimensions of a complex 3D solid (say a Cylinder Block) taken from user input. I need to construct vertex and index buffers for it.

Since the dimensions are taken from user input, I cannot user Blender or 3D Max to manually create my model. What is the textbook method to dynamically generate such a mesh?

Edit: I am looking for something that will generate the triangles given the vertices, edges and holes. Something like TetGen. As for TetGen itself, I have no way of excluding the triangles which fall on the interior of the solid/mesh.

© Stack Overflow or respective owner

Related posts about opengl

Related posts about graphics