Python library based on OpenNURBS with a RhinoCommon style
Actively maintained. Last release 7 days ago, commits in 21 of the last 26 weeks. A safe choice.
$
pip install rhino3dmrhino3dm.py
CPython package based on OpenNURBS with a RhinoCommon style
- Project Homepage at: https://github.com/mcneel/rhino3dm
- Developer samples at: https://github.com/mcneel/rhino-developer-samples/tree/8/rhino3dm/py
- Forums at: https://discourse.mcneel.com/c/rhino-developer/rhino3dm/
- Report issue: https://github.com/mcneel/rhino3dm/issues
Supported platforms
- Python 3.9, 3.10, 3.11, 3.12, 3.13, 3.14 - Windows (64 bit)
- Python 3.9, 3.10, 3.11, 3.12, 3.13, 3.14 - macos 14, macos 15 universal
- Python 3.9, 3.10, 3.11, 3.12, 3.13, 3.14 - Linux via manylinux_2_28_x86_64 and manylinux_2_28_aarch64
- other architectures, operating systems, and python versions are supported through source distributions
Test
- start
python
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))