java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.bzdev.p3d.ManifoldException
- All Implemented Interfaces:
Serializable
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 Summary
Modifier and TypeMethodDescriptionGet a list of triangles associated with this exception.int
Get the edge number of the directed edge for the second triangle in the list returned bygetErrorTriangles()
that was shared by the first triangle in the list.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
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 bygetErrorTriangles()
that was shared by the first triangle in the list.- Returns:
- the edge number (0, 1, or 2); -1 if there is none
-