MeshModel.from_mesh

classmethod MeshModel.from_mesh(mesh, name='Mesh', targetlength=None)

Create a mesh model from a mesh.

Parameters:
meshMesh

A COMPAS mesh.

namestr, optional

The name of the model.

target_lengthfloat, optional

Target value for the length of the mesh edges.

Returns:
MeshModel