public void RunFaces(CalculateFaceDelegate method) { RunFaces(NegativeX, method); RunFaces(NegativeY, method); RunFaces(NegativeZ, method); RunFaces(PositiveX, method); RunFaces(PositiveY, method); RunFaces(PositiveZ, method); }
public void RunFaces(SgtTerrainFace face, CalculateFaceDelegate method) { if (face != null) { method(face); if (face.Split == true) { RunFaces(face.ChildBL, method); RunFaces(face.ChildBR, method); RunFaces(face.ChildTL, method); RunFaces(face.ChildTR, method); } } }