fromMeshFree

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

Creates a model from the specified mesh, then frees the 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.