rhino3dm.py
CPython package based on OpenNURBS with a RhinoCommon style
Project Homepage at: https://github.com/mcneel/rhino3dm
Supported platforms
- Python 3.7, 3.8, 3.9, 3.10, 3.11 - Windows (32 and 64 bit)
- Python 3.7, 3.8, 3.9, 3.10, 3.11 - OSX (installed through homebrew)
- Python 3.8, 3.9, 3.10, 3.11 - Linux via manylinux
- other python versions are supported through source distributions
Test
from rhino3dm import *
import requests # pip install requests
req = requests.get("https://files.mcneel.com/TEST/Rhino Logo.3dm")
model = File3dm.FromByteArray(req.content)
for obj in model.Objects:
geometry = obj.Geometry
bbox = geometry.GetBoundingBox()
print("{}, {}".format(bbox.Min, bbox.Max))