new Builder()
Builds one or many THREE.Mesh from one raw set of Arraybuffers, materialGroup descriptions and further parameters. Supports vertex, vertexColor, normal, uv and index buffers.
Methods
-
<static> Builder#buildMeshes(meshPayload)
-
Builds one or multiple meshes from the data described in the payload (buffers, params, material info).
Parameters:
Name Type Description meshPayloadObject Raw mesh description (buffers, params, materials) used to build one to many meshes.
Returns:
mesh Array of THREE.Mesh
- Type
- Array.<THREE.Mesh>
-
<static> Builder#processPayload(payload)
-
Delegates processing of the payload (mesh building or material update) to the corresponding functions (BW-compatibility).
Parameters:
Name Type Description payloadObject Raw Mesh or Material descriptions.
Returns:
mesh Array of THREE.Mesh or null in case of material update
- Type
- Array.<THREE.Mesh>
-
<static> Builder#setMaterials(materials)
-
Set materials loaded by any supplier of an Array of THREE.Material.
Parameters:
Name Type Description materialsArray.<THREE.Material> Array of THREE.Material
-
<static> Builder#updateMaterials(materialPayload)
-
Updates the materials with contained material objects (sync) or from alteration instructions (async).
Parameters:
Name Type Description materialPayloadObject Material update instructions