addPart

fun addPart(mesh: Mesh, material: Material)

Adds a mesh and its associated material to the model.

Parameters

mesh

The mesh to add.

material

The material to associate with the mesh.