Skip to main content

Python library based on OpenNURBS with a RhinoCommon style

Project description

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

  • 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))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rhino3dm-8.0.1.tar.gz (66.0 MB view hashes)

Uploaded source

Built Distributions

rhino3dm-8.0.1-cp311-cp311-win_amd64.whl (2.3 MB view hashes)

Uploaded cp311

rhino3dm-8.0.1-cp310-cp310-win_amd64.whl (2.3 MB view hashes)

Uploaded cp310

rhino3dm-8.0.1-cp39-cp39-win_amd64.whl (2.5 MB view hashes)

Uploaded cp39

rhino3dm-8.0.1-cp38-cp38-win_amd64.whl (2.3 MB view hashes)

Uploaded cp38

rhino3dm-8.0.1-cp37-cp37m-win_amd64.whl (2.3 MB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page