surface_to_compas_mesh

compas_rhino.conversions.surface_to_compas_mesh(surface, nu, nv=None, weld=False, cls=None)[source]

Convert the surface to a COMPAS mesh.

Parameters:
surface: :class:`Rhino.Geometry.Surface`

A Rhino surface.

nu: int

The number of faces in the u direction.

nv: int, optional

The number of faces in the v direction. Default is the same as the u direction.

weld: bool, optional

Weld the vertices of the mesh. Default is False.

cls: :class:`compas.datastructures.Mesh`, optional

The type of COMPAS mesh.

Returns:
compas.datastructures.Mesh