Bitbybit Docs
    Preparing search index...

    Class CylinderDto (Inputs.OCCT)

    The size and placement of a cylinder for shapes.solid.createCylinder, which stands it on a round base at center.

    Index

    Constructors

    • Parameters

      • Optionalradius: number
      • Optionalheight: number
      • Optionalcenter: Point3
      • Optionaldirection: Vector3
      • Optionalangle: number
      • OptionaloriginOnCenter: boolean

      Returns Bit.Inputs.OCCT.CylinderDto

    Properties

    radius: number

    The radius of the round base, in model units.

    1
    

    0

    Infinity

    0.1

    height: number

    How far the cylinder grows from its base along direction, in model units.

    2
    

    0

    Infinity

    0.1

    center: Point3

    The center of the base, or the middle of the cylinder when originOnCenter is true.

    [0, 0, 0]
    
    direction?: Vector3

    The direction the cylinder grows in; the default stands it up along Y.

    [0, 1, 0]
    
    angle?: number

    How much of the full round to build, in degrees; less than 360 cuts a wedge out, like a slice of cake.

    360
    

    0

    Infinity

    1

    originOnCenter?: boolean

    When true, the cylinder is shifted back by half its height so center sits in its middle.

    false