Bitbybit Docs
    Preparing search index...

    Class DrawingSplineSegmentDto (Inputs.IO)

    A B-spline or NURBS curve in a drawing path, given by its control points, degree and optionally its knots and weights. Without knots the curve starts and ends at its end points.

    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