mergeMesh method

dynamic mergeMesh(
  1. dynamic mesh
)

Implementation

mergeMesh(mesh) {
  if (!(mesh && mesh.isMesh)) {
    print(
        'THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh. ${mesh}');
    return;
  }

  if (mesh.matrixAutoUpdate) mesh.updateMatrix();

  this.merge(mesh.geometry, mesh.matrix);
}