mesh_to_rhino

compas_rhino.conversions.mesh_to_rhino(mesh, color=None, vertexcolors=None, facecolors=None, disjoint=True, face_callback=None)[source]

Convert a COMPAS Mesh or a Polyhedron to a Rhino mesh object.

Parameters:
meshcompas.datastructures.Mesh | compas.geometry.Polyhedron

A COMPAS Mesh or a Polyhedron.

disjointbool, optional

If True, each face of the resulting mesh will be independently defined (have a copy of its own vertices).

face_callbackcallable, optional

Called after each face is created with the face as an agrument, useful for custom post-processing.

Returns:
Rhino.Geometry.Mesh

A Rhino mesh object.