surface_to_compas_quadmesh

compas_rhino.conversions.surface_to_compas_quadmesh(surface, nu, nv=None, weld=False, facefilter=None, 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.

facefilter: callable, optional

A filter for selection which Brep faces to include. If provided, the filter should return True or False per face. A very simple filter that includes all faces is def facefilter(face): return True. Default parameter value is None in which case all faces are included.

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

The type of COMPAS mesh.

Returns:
compas.geometry.Mesh