Marching Cube Algorithm

Sorry this is not directly OpenGL related… but does anyone know where I can find some Marching Cube sample code for isosurface extraction, preferably in C or C++.

Thanks

Thom

I believe that theres an really good example in Graphics Gems III. It might be one of the others though. You can download the source for the graphics gems books online also, I dont recall which FTP server to get it from, but I’m sure you can find a link somewhere.

http://www.swin.edu.au/astronomy/pbourke/modelling/polygonise/

The only place you need. Easy sourcecode included.

Very helpful. Thanks guys,

Thom

Have a look into this thread for a cleaner method to calculate the normals: http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/000672.html