Module imp3d

Interface LineSegmentizable

All Known Implementing Classes:
NURBSCurve

public interface LineSegmentizable
If a LineSegmentizable object is the value of the attribute Attributes.SHAPE, it defines a shape which is composed of line segments.
Author:
Ole Kniemeyer
  • Method Details

    • getStamp

      int getStamp()
    • getSegmentizableSource

      ContextDependent getSegmentizableSource(GraphState gs)
      Defines the data source on which the line segmentization depends.
      Parameters:
      gs - the current graph state
      Returns:
      the data source
    • segmentize

      void segmentize(ContextDependent source, GraphState gs, LineArray out, float flatness)
      Performs the segmentization of the source into line segments. The field out.userObject is not modified.
      Parameters:
      source - the data source as reported by a previous invocation of getSegmentizableSource(GraphState) with the same gs
      gs - the current graph state
      out - the line segments are written to out
      flatness - a parameter for the degree of flatness, a typical value is 1