Good code example, how to implement marching cubes?

I am currently trying to implement a marching cubes algorithm in my project. It uses Unity 3 and C #. But I need to find the right implementation example to really understand its inner workings.

I found one name, Metaballs, but it is too complicated in the sense that in this particular case a marching cube is used to dynamically change the grid over time.

I am looking for a simple case so that a beginner can understand what is happening.

thanks

+7
source share
4 answers

Take a look at the link from Paul Bourke. This is an explanation about marching cubes and sample code. It is very easy to understand. The other I found is in Python , it is simpler than the first. You only need to take a look at the grid method from the Iso class.

+3
source

Have you read the original paper ? This is very well explained.

+2
source

It may also be instructive to look at a bilingual textbook on metaballs, and then look again at the three-dimensional case.

http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/exploring-metaballs-and-isosurfaces-in-2d-r2556

+2
source

Like me, I was looking for an example of unmarking the Marching Cubes algorithm - I am particularly interested in the graphic display of implicitly defined surfaces. Since I could not find it, I wrote an introductory example, Marching Cubes, which uses Three.js, and posted it at:

http://stemkoski.github.com/Three.js/Marching-Cubes.html

+1
source

All Articles