Package org.bzdev.p3d

Class Model3D.TessellationException

All Implemented Interfaces:
Serializable
Enclosing class:
Model3D

public static class Model3D.TessellationException extends RuntimeException
Exception indicating that an error occurred while tessellating a model.
See Also:
  • 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 by SurfaceIterator.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[])