Bitbybit Docs
    Preparing search index...

    Class TorusDto (Inputs.JSCAD)

    Feeds shapes.torus: a ring with a round cross-section lying flat in the XY plane around center, given by the ring and tube radii, the facet counts of each and the angles that can leave the ring partly open.

    Index

    Constructors

    • Parameters

      • Optionalcenter: Point3
      • OptionalinnerRadius: number
      • OptionalouterRadius: number
      • OptionalinnerSegments: number
      • OptionalouterSegments: number
      • OptionalinnerRotation: number
      • OptionalouterRotation: number
      • OptionalstartAngle: number

      Returns Bit.Inputs.JSCAD.TorusDto

    Properties

    center: Point3

    The point the ring is centered on, in model units

    [0, 0, 0]
    
    innerRadius: number

    Radius of the tube itself, in model units; it must be less than outerRadius

    1
    

    0

    Infinity

    0.1

    outerRadius: number

    Distance from the ring's center to the middle of the tube, in model units, so the ring spans twice the sum of both radii

    2
    

    0

    Infinity

    0.1

    innerSegments: number

    Number of flat pieces around the tube's cross-section; more makes the tube rounder

    24
    

    0

    Infinity

    1

    outerSegments: number

    Number of flat pieces around the ring; more makes the ring rounder

    24
    

    0

    Infinity

    1

    innerRotation: number

    Turn of the tube's cross-section about its own center, in degrees; it shows when innerSegments is low enough for the facets to be visible

    0
    

    -Infinity

    Infinity

    1

    outerRotation: number

    How far the tube is swept around the ring, in degrees; 360 closes the ring and less leaves it open

    360
    

    -Infinity

    Infinity

    1

    startAngle: number

    Where the sweep around the ring starts, in degrees from the X axis

    0
    

    -Infinity

    Infinity

    1