Bitbybit Docs
    Preparing search index...

    Class CreateTorusDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createTorus: the overall diameter of a ring in the XZ plane, the diameter of its tube and how finely it is divided.

    Index

    Constructors

    • Parameters

      • Optionaldiameter: number
      • Optionalthickness: number
      • Optionaltessellation: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateTorusDto

    Properties

    diameter: number

    Full width of the ring, in scene units

    1
    

    0

    Infinity

    0.1

    thickness: number

    Diameter of the tube, in scene units

    0.5
    

    0

    Infinity

    0.1

    tessellation: number

    Number of divisions around the ring and the tube; more is rounder

    32
    

    3

    Infinity

    1

    sideOrientation: sideOrientationEnum

    Which side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind

    frontside
    
    enableShadows: boolean

    When true, the mesh casts and receives shadows from the lights that have them enabled

    true