Bitbybit Docs
    Preparing search index...

    Class CreateSphereDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createSphere with the diameter of a sphere centered on the origin and how finely it is divided.

    Index

    Constructors

    • Parameters

      • Optionaldiameter: number
      • Optionalsegments: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateSphereDto

    Properties

    diameter: number

    Full width of the sphere, in scene units

    1
    

    0

    Infinity

    0.1

    segments: number

    Number of divisions around and over the sphere; more is rounder and heavier

    32
    

    0

    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