Bitbybit Docs
    Preparing search index...

    Class TorusDto (Inputs.OCCT)

    The two radii and placement of a ring for shapes.solid.createTorus.

    Index

    Constructors

    • Parameters

      • OptionalmajorRadius: number
      • OptionalminorRadius: number
      • Optionalcenter: Point3
      • Optionaldirection: Vector3
      • Optionalangle: number

      Returns Bit.Inputs.OCCT.TorusDto

    Properties

    majorRadius: number

    The distance from the center of the ring to the middle of its tube, in model units.

    2
    

    0

    Infinity

    0.1

    minorRadius: number

    The radius of the tube itself, in model units.

    0.5
    

    0

    Infinity

    0.1

    center: Point3

    The point the ring is centered on.

    [0, 0, 0]
    
    direction: Vector3

    The axis the ring goes around; the default lays it flat on the ground.

    [0, 1, 0]
    
    angle?: number

    How much of the full ring to build, in degrees; less than 360 gives a partial ring.

    360
    

    0

    360

    1