Bitbybit Docs
    Preparing search index...

    Class CreateIcoSphereDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createIcoSphere: the radius of a triangle-based sphere, optional per-axis radii, flat shading and how often it is subdivided.

    Index

    Constructors

    • Parameters

      • Optionalradius: number
      • OptionalradiusX: number
      • OptionalradiusY: number
      • OptionalradiusZ: number
      • Optionalflat: boolean
      • Optionalsubdivisions: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateIcoSphereDto

    Properties

    radius: number

    Radius on every axis, in scene units, unless a per-axis radius overrides it

    1
    

    0

    Infinity

    0.1

    radiusX: number

    Radius along X, in scene units; 0 falls back to radius

    0
    

    0

    Infinity

    0.1

    radiusY: number

    Radius along Y, in scene units; 0 falls back to radius

    0
    

    0

    Infinity

    0.1

    radiusZ: number

    Radius along Z, in scene units; 0 falls back to radius

    0
    

    0

    Infinity

    0.1

    flat: boolean

    When true, each triangle is shaded flat, showing facets instead of a smooth surface

    false
    
    subdivisions: number

    How many times the starting icosahedron is subdivided; more is rounder and heavier

    4
    

    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