Class DXFSpline

  • All Implemented Interfaces:
    DXFObject

    public class DXFSpline
    extends DXFGraphicalEntity
    Class representing a general B-spline
    Author:
    jsevy
    • Constructor Detail

      • DXFSpline

        public DXFSpline​(int degree,
                         java.util.Vector<SplineControlPoint> controlPoints,
                         boolean throughEndpoints,
                         DXFGraphics graphics)
        Create a spline of specified degree for the specified control points, using uniform knot vector.
        Parameters:
        degree - Degree of the piecewise-polynomial spline segments
        controlPoints - Locations and weights of the control points for the spline
        throughEndpoints - If true, the spline will be forced to pass through the endpoints by setting the end control point multiplicities to degree + 1
        graphics - The graphics object specifying parameters for this entity (color, thickness)
      • DXFSpline

        public DXFSpline​(int degree,
                         double[] controlPoints,
                         double[] knots,
                         DXFGraphics graphics)
        Create a spline of specified degree for the specified control points, using supplied knot vector.
        Parameters:
        degree - Degree of the piecewise-polynomial spline segments
        controlPoints - Locations of the control points for the spline
        knots - The knot sequence; length must be controlPoints.size() + degree + 1
        graphics - The graphics object specifying parameters for this entity (color, thickness)