PDA

View Full Version : How to construct irregular shapes and render it



01-19-2001, 03:21 AM
I have slices of a object which is a irregular shape. How do i give this 2D slice to opengl and form mesh and render the volume of all slices put together.

Secondly how do i create irregular object in opengl.

Regards,
Vinayak Yardi
vinayakyardi@usa.net

DFrey
01-19-2001, 07:10 AM
If your slices are scalar fields, then it sounds like you need to look into computer visualization, and use something like the marching cubes algorithm. If your slices are just contours, then you can just divide the contours with points and connect them with their neighbors to form a mesh.