how does getdepth function work in MarchingCube algorithm?
问题 I am trying to understand Marching Cube Algorithm, so for I think I have understood how triangles are formed and how normals are calculated in each grid. I can see there is a linked list kind of structure that links each grid to another. But when I come across GetDepth(t[m]) which passes each triangles (those triangles of each grid) (t[0],..,..)individually, it returns depth of the node. The function, float GetDepth(TRIANGLE t) { float z; z = t.p[0].z; z = t.p[1].z > z? t.p[1].z: z; z = t.p[2