fromMesh

fun fromMesh(mesh: Mesh, material: Material? = null): Model

Creates a model from the specified mesh.

Return

The created Model.

Parameters

mesh

The mesh to create the model from.

material

The material to apply to the model. If null, the material is not set.