Builds meshes from the g3d and BufferGeometry Allows to reuse the same material for all new built meshes

Hierarchy

  • MeshBuilder

Constructors

Properties

materials: ViewerMaterials

Methods

  • Creates a InstancedMesh from g3d data and given instance indices

    Returns

    a THREE.InstancedMesh

    Parameters

    • geometry: BufferGeometry

      Geometry to use in the mesh

    • g3d: G3d
    • instances: number[]

      Instance indices for which matrices will be applied to the mesh

    • useAlpha: boolean

      Specify whether to use RGB or RGBA

    Returns Mesh

  • Create a wireframe mesh from g3d instance indices

    Returns

    a THREE.Mesh

    Parameters

    • g3d: G3d
    • instances: number[]

      g3d instance indices to be included in the merged mesh. All mergeable meshes if undefined.

    Returns LineSegments<WireframeGeometry<BufferGeometry>, LineBasicMaterial>

Generated using TypeDoc