Bitbybit Docs
    Preparing search index...

    Class CreateDiscDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createDisc: the radius of a flat disc in the XY plane, how many sides approximate it and how much of the full circle it covers.

    Index

    Constructors

    • Parameters

      • Optionalradius: number
      • Optionaltessellation: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateDiscDto

    Properties

    radius: number

    Distance from the center to the rim, in scene units

    1
    

    0

    Infinity

    0.1

    tessellation: number

    Number of straight sides around the rim; more is rounder

    32
    

    3

    Infinity

    1

    arc: number

    How much of the full circle is drawn, from 0 to 1; 0.5 gives a half disc

    1
    

    0

    1

    0.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