Currently I am trying to implement the marching cubes algorithm in my project. It uses Unity 3 and C#. But I need to find a proper implementation example to truly understand its inner working.
If for example the value at vertex 3 is below the isosurface value and all the values at all the other vertices were above the isosurface value then we would create a triangular facet which cuts through edges 2,3, and 11. The exact position of the vertices of the triangular facet depend on the relationship of the isosurface value to the values at the vertices 3-2, 3-0, 3-7 respectively.