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++.



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.

The only place you need. Easy sourcecode included.

Very helpful. Thanks guys,


Have a look into this thread for a cleaner method to calculate the normals: