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

01-19-2001, 02: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.

Vinayak Yardi

01-19-2001, 06: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.