Interface SurfaceIterator

All Known Implementing Classes:
SubdivisionIterator

public interface SurfaceIterator
An iterator describing a surface embedded in a space that has three dimensions. The surface is described by a series of segments, with the segments appearing in an arbitrary order.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    A segment of a surface is a cubic Bézier patch.
    static final int
    A segment of a surface is a cubic Bézier triangle For this type of segment, there are 10 control points for a total of 30 double- or single-precision values.
    static final int
    A segment of a surface is a cubic-vertex triangle.
    static final int
    A segment of a surface is a planar triangle For this type of segment, there are 3 control points for a total of 9 double- or single-precision values.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the color for the current segment.
    int
    currentSegment(double[] coords)
    Get the current segment using double-precision values.
    int
    currentSegment(float[] coords)
    Get the current segment using single-precision values.
    Return the tag for the current segment.
    boolean
    Return true if iteration is complete.
    boolean
    Determine if a segment is from an oriented surface.
    void
    Move to the next segment.
  • Field Details

    • CUBIC_PATCH

      static final int CUBIC_PATCH
      A segment of a surface is a cubic Bézier patch. For this type of segment, there are 16 control points for a total of 48 double- or single-precision values.
      See Also:
    • CUBIC_TRIANGLE

      static final int CUBIC_TRIANGLE
      A segment of a surface is a cubic Bézier triangle For this type of segment, there are 10 control points for a total of 30 double- or single-precision values.
      See Also:
    • PLANAR_TRIANGLE

      static final int PLANAR_TRIANGLE
      A segment of a surface is a planar triangle For this type of segment, there are 3 control points for a total of 9 double- or single-precision values.
      See Also:
    • CUBIC_VERTEX

      static final int CUBIC_VERTEX
      A segment of a surface is a cubic-vertex triangle. For this type of segments, there are 5 control points for a total of 15 double- or single-precision values. The first 4 control points define a Bézier curve and the last control points defines a vertex. The surface segment consists of all points on the Bézier curve connected to the vertex by straight-line segments.
      See Also:
  • Method Details