Bitbybit Docs
    Preparing search index...

    Class MergeMeshesDto (Inputs.BabylonMesh)

    Feeds babylon.mesh.mergeMeshes with the meshes to join into one and the merge options of the engine.

    Index

    Constructors

    • Parameters

      • OptionalarrayOfMeshes: Mesh[]
      • OptionaldisposeSource: boolean
      • Optionalallow32BitsIndices: boolean
      • OptionalmeshSubclass: Mesh
      • OptionalsubdivideWithSubMeshes: boolean
      • OptionalmultiMultiMaterials: boolean

      Returns MergeMeshesDto

    Properties

    arrayOfMeshes: Mesh[]

    The meshes to join; none of them may be empty

    undefined
    
    disposeSource: boolean

    When true, the source meshes are removed once merged

    true
    
    allow32BitsIndices: boolean

    Set true when the meshes together have more than 65 thousand vertices, or the merge fails

    false
    
    meshSubclass?: any

    An existing mesh to merge the vertices into instead of creating a new one

    undefined
    

    true

    subdivideWithSubMeshes: boolean

    When true, each source becomes a sub-mesh of the result, keeping their boundaries

    false
    
    multiMultiMaterials: boolean

    When true, each source keeps its own material in a multi-material result; overrides subdivideWithSubMeshes

    false