Bitbybit Docs
    Preparing search index...

    Class CreateTubeDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createTube: the path a tube follows, its radius, how round it is, which ends are capped and how much of its circumference is drawn.

    Index

    Constructors

    • Parameters

      • Optionalpath: Vector3[]
      • Optionalradius: number
      • Optionaltessellation: number
      • Optionalcap: number
      • Optionalarc: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateTubeDto

    Properties

    path: Vector3[]

    The points the center line of the tube passes through, in order

    undefined
    
    radius: number

    Radius of the tube, in scene units

    1
    

    0

    Infinity

    0.1

    tessellation: number

    Number of sides around the tube; more is rounder

    32
    

    3

    Infinity

    1

    cap: number

    Which ends are closed: 0 none, 1 the start, 2 the end, 3 both

    0
    

    0

    3

    1

    arc: number

    How much of the circumference is drawn, from 0 to 1; below 1 the tube is open along its length

    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

    doubleside
    
    enableShadows: boolean

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

    true