Bitbybit Docs
    Preparing search index...

    Class RoundedCylidnerDto (Inputs.JSCAD)

    Feeds shapes.roundedCylinder: a cylinder standing along Z whose two rims are rounded, given by the point halfway up its axis, the rounding radius, its height and radius and how finely it is faceted.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    roundRadius?: number

    Radius of the rounding on both rims, in model units; the height must be more than twice it or an error is thrown

    0.1
    

    0

    Infinity

    0.1

    height?: number

    Full length along Z, in model units, rounding included

    1
    

    0

    Infinity

    0.1

    radius?: number

    Distance from the axis to the side, in model units

    1
    

    0

    Infinity

    0.1

    segments?: number

    Number of flat sides around the cylinder and pieces in the rounding; more makes it smoother

    24
    

    4

    Infinity

    1

    center?: Point3

    The point halfway up the axis; half the height lies above it along Z and half below

    [0, 0, 0]