Bitbybit Docs
    Preparing search index...

    Class BezierWeightsDto

    Index

    Constructors

    • Parameters

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

      Returns BezierWeightsDto

    Properties

    points: Point3[]

    Points through which the Bezier curve will be created

    undefined
    
    weights: number[]

    Weights for beziers that will be used, values should be between 0 and 1

    undefined
    
    closed: boolean

    Indicates wether Bezier will be cloed

    false
    
    periodic?: boolean

    Build a smooth CLOSED (periodic) rational curve that wraps the weighted control polygon, continuous across the seam - unlike closed, which only meets C0 by repeating the first point. Requires one weight per point (the points are not duplicated). Ignores closed when set.

    false
    

    true

    degree?: number

    Maximum local degree used when periodic is set (clamped to [1, points-1]); empty uses a sensible default. Ignored for the non-periodic rational Bezier.

    undefined
    

    true

    1

    Infinity

    1