Module imp3d

Class NURBSCurve

All Implemented Interfaces:
LineSegmentizable, Transformation, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable

public class NURBSCurve extends ColoredNull implements LineSegmentizable
See Also:
  • Field Details

  • Constructor Details

    • NURBSCurve

      public NURBSCurve()
    • NURBSCurve

      public NURBSCurve(BSplineCurve curve)
  • Method Details

    • getSegmentizableSource

      public ContextDependent getSegmentizableSource(GraphState gs)
      Description copied from interface: LineSegmentizable
      Defines the data source on which the line segmentization depends.
      Specified by:
      getSegmentizableSource in interface LineSegmentizable
      Parameters:
      gs - the current graph state
      Returns:
      the data source
    • segmentize

      public void segmentize(ContextDependent source, GraphState gs, LineArray out, float flatness)
      Description copied from interface: LineSegmentizable
      Performs the segmentization of the source into line segments. The field out.userObject is not modified.
      Specified by:
      segmentize in interface LineSegmentizable
      Parameters:
      source - the data source as reported by a previous invocation of LineSegmentizable.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
    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Null
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Null
      Returns:
      new instance of class of this node
    • getCurve

      public BSplineCurve getCurve()
    • setCurve

      public void setCurve(BSplineCurve value)