Bitbybit Docs
    Preparing search index...

    Class CreateCylinderDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createCylinder: the height of a cylinder standing along Y, its top and bottom diameters and how finely it is divided.

    Index

    Constructors

    • Parameters

      • Optionalheight: number
      • OptionaldiameterTop: number
      • OptionaldiameterBottom: number
      • Optionaltessellation: number
      • Optionalsubdivisions: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateCylinderDto

    Properties

    height: number

    Full length along Y, in scene units

    1
    

    0

    Infinity

    0.1

    diameterTop: number

    Diameter of the top end, in scene units; 0 closes it to a point

    1
    

    0

    Infinity

    0.1

    diameterBottom: number

    Diameter of the bottom end, in scene units; 0 closes it to a point

    1
    

    0

    Infinity

    0.1

    tessellation: number

    Number of sides around the cylinder; more is rounder

    64
    

    3

    Infinity

    1

    subdivisions: number

    Number of rings along the height; more than 1 only matters for deforming or shading

    1
    

    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

    doubleside
    
    enableShadows: boolean

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

    true