Bitbybit Docs
    Preparing search index...

    Class LPolygonDto (Inputs.OCCT)

    The two legs of an L shape and its placement for shapes.wire.createLPolygonWire and shapes.face.createLPolygonFace.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • OptionalwidthFirst: number
      • OptionallengthFirst: number
      • OptionalwidthSecond: number
      • OptionallengthSecond: number
      • Optionalalign: directionEnum
      • Optionalrotation: number
      • Optionalcenter: Point3
      • Optionaldirection: Vector3

      Returns LPolygonDto

    Properties

    widthFirst: number

    The thickness of the first leg, in model units.

    1
    

    0

    Infinity

    0.1

    lengthFirst: number

    The length of the first leg, in model units.

    2
    

    0

    Infinity

    0.1

    widthSecond: number

    The thickness of the second leg, in model units.

    0.5
    

    0

    Infinity

    0.1

    lengthSecond: number

    The length of the second leg, in model units.

    2
    

    0

    Infinity

    0.1

    Where the corner of the L sits relative to the legs: on their outside, their inside or their middle.

    outside
    
    rotation: number

    How far the shape is turned in its plane, in degrees.

    0
    

    0

    Infinity

    15

    center: Point3

    The point the shape is placed at.

    [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]