Bitbybit Docs
    Preparing search index...

    Class RoundedCuboidDto (Inputs.JSCAD)

    Feeds shapes.roundedCuboid: a box with every edge and corner rounded, given by its center, its sizes along X, Y and Z, the rounding radius and how finely the rounding is faceted.

    Index

    Constructors

    • Parameters

      • Optionalcenter: Point3
      • OptionalroundRadius: number
      • Optionalwidth: number
      • Optionallength: number
      • Optionalheight: number
      • Optionalsegments: number

      Returns RoundedCuboidDto

    Properties

    center: Point3

    The point the box is centered on, so half of each size lies on each side of it

    [0, 0, 0]
    
    roundRadius: number

    Radius of the rounding on every edge, in model units; it must be less than half of the smallest side or an error is thrown

    0.1
    

    0

    Infinity

    0.1

    width: number

    Full size along X, in model units, rounding included

    1
    

    0

    Infinity

    0.1

    length: number

    Full size along Z, in model units, rounding included

    1
    

    0

    Infinity

    0.1

    height: number

    Full size along Y, in model units, rounding included

    1
    

    0

    Infinity

    0.1

    segments: number

    Number of straight pieces a full circle of rounding is made of; more makes the edges smoother

    24
    

    0

    Infinity

    1