Bitbybit Docs
    Preparing search index...

    Class BezierWeightsDto (Inputs.OCCT)

    Control points with a weight each and shape options for shapes.wire.createBezierWeights; the weights say how strongly each point pulls the curve.

    Index

    Constructors

    • Parameters

      • Optionalpoints: Point3[]
      • Optionalweights: number[]
      • Optionalclosed: boolean
      • Optionalperiodic: boolean
      • Optionaldegree: number

      Returns BezierWeightsDto

    Properties

    points: Point3[]

    The control points: the curve starts at the first, ends at the last and is pulled toward the ones between.

    undefined
    
    weights: number[]

    One weight per control point, plus one more when closed is true and periodic false; above 1 pulls harder, below 1 lets go.

    undefined
    
    closed: boolean

    When true, the first point is appended again so the ends meet, with a corner at the seam.

    false
    
    periodic?: boolean

    When true, the curve closes into a loop that is smooth across the seam and needs exactly one weight per point; it overrides closed.

    false
    

    true

    degree?: number

    How many neighboring control points shape each part of a periodic curve; ignored otherwise.

    undefined
    

    true

    1

    Infinity

    1