public ZapFace ( LibTessDotNet.MeshUtils.Face fZap ) : void | ||
fZap | LibTessDotNet.MeshUtils.Face | |
return | void |
private void DiscardExterior() { MeshUtils.Face next; for (MeshUtils.Face face = _mesh._fHead._next; face != _mesh._fHead; face = next) { next = face._next; if (!face._inside) { _mesh.ZapFace(face); } } }
/// <summary> /// DiscardExterior zaps (ie. sets to null) all faces /// which are not marked "inside" the polygon. Since further mesh operations /// on NULL faces are not allowed, the main purpose is to clean up the /// mesh so that exterior loops are not represented in the data structure. /// </summary> private void DiscardExterior() { MeshUtils.Face f, next; for (f = _mesh._fHead._next; f != _mesh._fHead; f = next) { // Since f will be destroyed, save its next pointer. next = f._next; if (!f._inside) { _mesh.ZapFace(_pool, f); } } }