Bitbybit Docs
    Preparing search index...

    Class CreateRibbonDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createRibbon: the paths a surface is stretched over, how they close and pair up, and whether the mesh can be updated later.

    Index

    Constructors

    • Parameters

      • OptionalpathArray: Vector3[][]
      • OptionalcloseArray: boolean
      • OptionalclosePath: boolean
      • Optionaloffset: number
      • Optionalupdatable: boolean
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateRibbonDto

    Properties

    pathArray: Vector3[][]

    The paths, each a list of points; neighboring paths are joined with triangles

    closeArray: boolean

    When true, the last path is joined back to the first, closing the surface around

    false
    
    closePath: boolean

    When true, each path is joined end to start, closing the surface along

    false
    
    offset: number

    When only one path is given, how many points apart the pairs that form triangles are taken

    0
    
    updatable: boolean

    When true, the vertices of the mesh can be changed later without rebuilding it

    false
    
    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