Exchanging mesh between Rhino and Python

Hi all,

I have a rhino model of an indoor space consisting of walls, ceiling, floor, windows and chair.

I am looking for a way to put each instance of an object category, say, each chair, to a python variable as a mesh(using opensource libraries like trimesh and pyvista). The room is not clean and organized.

My question is how would you approach this? can you suggest a reasonable practice for sorting and exporting data for this task?

Best,

J.

You can script the meshing of the objects with rhinoscriptsyntax or RhinoCommon (which use Rhino’s internal meshing algorithms) with all kinds of options, the main question is once the meshes are generated, what format you want to export them as… That can also be scripted with the usual formats .stl, .obj, etc…