Bitbybit Docs
    Preparing search index...

    Class CreateGoldbergDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createGoldberg: how many hexagons the ball is made of and its size per axis.

    Index

    Constructors

    • Parameters

      • Optionalm: number
      • Optionaln: number
      • Optionalsize: number
      • OptionalsizeX: number
      • OptionalsizeY: number
      • OptionalsizeZ: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateGoldbergDto

    Properties

    m: number

    The first subdivision number; with n it sets how many hexagons surround the twelve pentagons

    4
    

    0

    Infinity

    1

    n: number

    The second subdivision number; with m it sets how many hexagons surround the twelve pentagons

    4
    

    0

    Infinity

    1

    size: number

    Size on every axis, in scene units, unless a per-axis size overrides it

    1
    

    0

    Infinity

    0.1

    sizeX: number

    Size along X, in scene units; 0 falls back to size

    0
    

    0

    Infinity

    0.1

    sizeY: number

    Size along Y, in scene units; 0 falls back to size

    0
    

    0

    Infinity

    0.1

    sizeZ: number

    Size along Z, in scene units; 0 falls back to size

    0
    

    0

    Infinity

    0.1

    sideOrientation: sideOrientationEnum

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

    doubleside
    
    enableShadows: boolean

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

    true