java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.bzdev.p3d.Model3D.TessellationException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Model3D
Exception indicating that an error occurred while tessellating
a model.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintfailedEntry(double[] coords) Find the partitioned surface segment, if any that caused a tessellation failure.intfailedSegment(double[] coords) Find the surface segment, if any, that caused a tessellation falure.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
failedSegment
public int failedSegment(double[] coords) Find the surface segment, if any, that caused a tessellation falure.- Parameters:
coords- an array of length 48 to hold the values provided bySurfaceIterator.currentSegment(double[])- Returns:
- -1 if there is no surface segment associated with this
exception; otherwise the value returned by
SurfaceIterator.currentSegment(double[])
-
failedEntry
public int failedEntry(double[] coords) Find the partitioned surface segment, if any that caused a tessellation failure.- Parameters:
coords- an array of length 48 to hold the values- Returns:
- -1 if there is no surface segment associated with this
exception; otherwise a value defined by the return value
for
SurfaceIterator.currentSegment(double[])
-