surface_to_compas
- compas_rhino.conversions.surface_to_compas(surface, try_nurbs=True)[source]
Convert a Rhino surface to a COMPAS surface.
- Parameters:
- surface: :rhino:`Rhino.Geometry.Surface`
A Rhino surface geometry.
- try_nurbsbool, optional
Try to convert the surface to a NURBS surface.
- Returns:
compas.geometry.Surface
|compas.geometry.NurbsSurface
If try_nurbs is True, and the geometry of the object has a NURBS representation, return a NURBS surface. Otherwise return a general surface.