Bitbybit Docs
    Preparing search index...

    Class CubeDto (Inputs.OCCT)

    The side of a cube and where it sits, for shapes.solid.createCube.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalsize: number
      • Optionalcenter: Point3
      • OptionaloriginOnCenter: boolean

      Returns Bit.Inputs.OCCT.CubeDto

    Properties

    size: number

    The length of every side, in model units.

    1
    

    0

    Infinity

    0.1

    center: Point3

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

    [0, 0, 0]
    
    originOnCenter?: boolean

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

    true