Package org.bzdev.p3d

Class ManifoldException

All Implemented Interfaces:
Serializable

public class ManifoldException extends IllegalStateException
Manifold-component exception. This exception may be thrown when it is necessary to compute the components of a manifold. If the method hasFailedEdge() returns true, there is an edge associated with the exception
See Also:
  • Method Details

    • getErrorTriangles

      public List<Model3D.Triangle> getErrorTriangles()
      Get a list of triangles associated with this exception. The list can have one or two elements.
      Returns:
      the list of triangles associated with this exception
    • getFailedEdge

      public int getFailedEdge()
      Get the edge number of the directed edge for the second triangle in the list returned by getErrorTriangles() that was shared by the first triangle in the list.
      Returns:
      the edge number (0, 1, or 2); -1 if there is none