Bitbybit Docs
    Preparing search index...

    Class ParallelogramDto (Inputs.OCCT)

    The size, lean and placement of a parallelogram for shapes.wire.createParallelogramWire and shapes.face.createParallelogramFace.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • Optionalcenter: Point3
      • Optionaldirection: Vector3
      • OptionalaroundCenter: boolean
      • Optionalwidth: number
      • Optionalheight: number
      • Optionalangle: number

      Returns ParallelogramDto

    Properties

    center: Point3

    The point the shape is centered on, or starts from when aroundCenter is false.

    [0, 0, 0]
    
    direction: Vector3

    The normal of the plane the shape lies in; the default lays it flat on the ground.

    [0, 1, 0]
    
    aroundCenter: boolean

    When true the shape is centered on center; when false it starts there and extends in the positive directions.

    true
    
    width: number

    The width of the shape's bounding rectangle, in model units.

    2
    

    0

    Infinity

    0.1

    height: number

    The height of the shape's bounding rectangle, in model units.

    1
    

    0

    Infinity

    0.1

    angle: number

    How far the sides lean over from a rectangle, in degrees; 0 gives a rectangle.

    15
    

    -Infinity

    Infinity

    1