Bitbybit Docs
    Preparing search index...

    Class NGonSolidDto (Inputs.OCCT)

    A regular polygon and the extrusion lengths for shapes.solid.createNGonSolid; at least one length must be above 0.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • Optionalcenter: Point3
      • Optionaldirection: Vector3
      • OptionalnrCorners: number
      • Optionalradius: number
      • OptionalextrusionLengthFront: number
      • OptionalextrusionLengthBack: number

      Returns NGonSolidDto

    Properties

    center: Point3

    The point the polygon is centered on.

    [0, 0, 0]
    
    direction: Vector3

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

    [0, 1, 0]
    
    nrCorners: number

    How many corners, and so how many equal sides, the polygon has.

    6
    

    3

    Infinity

    1

    radius: number

    The distance from the center to each corner, in model units.

    1
    

    0

    Infinity

    0.1

    extrusionLengthFront: number

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

    1
    

    0

    Infinity

    0.1

    extrusionLengthBack: number

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

    0
    

    0

    Infinity

    0.1