Bitbybit Docs
    Preparing search index...

    Class RoundedRectangleDto (Inputs.JSCAD)

    Feeds polygon.roundedRectangle: a filled rectangle in the XY plane whose four corners are rounded, given by its 2D center, its sizes, the corner radius and how finely the corners are faceted.

    Index

    Constructors

    • Parameters

      • Optionalcenter: Point2
      • OptionalroundRadius: number
      • Optionalsegments: number
      • Optionalwidth: number
      • Optionallength: number

      Returns RoundedRectangleDto

    Properties

    center: Point2

    The 2D center point, as X and Y in the plane

    [0, 0]
    
    roundRadius: number

    Radius of each rounded corner, in model units; it must be less than half of the smaller side or an error is thrown

    0.2
    

    -Infinity

    Infinity

    0.1

    segments: number

    Number of straight pieces a full circle of rounding is made of, so each corner gets a quarter; more makes it smoother

    24
    

    0

    Infinity

    1

    width: number

    Full size along X, in model units

    1
    

    -Infinity

    Infinity

    0.1

    length: number

    Full size along Y, in model units

    1
    

    -Infinity

    Infinity

    0.1