Bitbybit Docs
    Preparing search index...

    Class DxfSplineSegmentDto (Inputs.IO)

    A B-spline or NURBS curve in a drawing path, under its former DXF name.

    Use DrawingSplineSegmentDto, the same DTO under the drawing's own name; this one is removed in the next major version.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    controlPoints: (Bit.Inputs.Base.Point3 | Bit.Inputs.Base.Point2)[]

    The control points the curve is pulled towards; there must be more of them than the degree.

    undefined
    
    degree?: number

    The degree of the curve: 1 draws the control polygon, 2 and 3 smooth curves.

    3
    

    1

    Infinity

    1

    closed?: boolean

    Without knots, whether the curve wraps around its control points into a smooth closed loop. With knots, the knots decide, and this is ignored.

    false
    
    knots?: number[]

    The full knot vector: never decreasing, one more value than the control points and the degree together. Left out, the curve starts and ends at its end points.

    undefined
    

    true

    weights?: number[]

    One positive weight per control point, which makes the curve rational (a NURBS curve). Leave it out for a weight of 1 everywhere.

    undefined
    

    true