Bitbybit Docs
    Preparing search index...

    Class BoxDto (Inputs.OCCT)

    The three sides of a box and where it sits, for shapes.solid.createBox; width runs along X, height along Y, which is up, and length along Z.

    Index

    Constructors

    • Parameters

      • Optionalwidth: number
      • Optionallength: number
      • Optionalheight: number
      • Optionalcenter: Bit.Inputs.Base.Point3
      • OptionaloriginOnCenter: boolean

      Returns BoxDto

    Properties

    width?: number

    The side along X, in model units.

    1
    

    0

    true

    Infinity

    0.1

    length?: number

    The side along Z, in model units.

    2
    

    0

    true

    Infinity

    0.1

    height?: number

    The side along Y, which is up, in model units.

    3
    

    0

    true

    Infinity

    0.1

    The point the box is centered on, or stands on when originOnCenter is false.

    [0, 0, 0]
    
    originOnCenter?: boolean

    When true, the box is centered on center; when false it stands on it, so center is the middle of the bottom face.

    true