Bitbybit Docs
    Preparing search index...

    Class ParallelogramSolidDto (Inputs.OCCT)

    A parallelogram and the extrusion lengths for shapes.solid.createParallelogramSolid; at least one length must be above 0.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

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

      Returns ParallelogramSolidDto

    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

    extrusionLengthFront: number

    How far the parallelogram grows along its plane normal, in model units.

    1
    

    0

    Infinity

    0.1

    extrusionLengthBack: number

    How far the parallelogram grows against its plane normal, in model units.

    0
    

    0

    Infinity

    0.1