Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.53 KB

RHINO3DM.PY.md

File metadata and controls

40 lines (28 loc) · 1.53 KB

rhino3dm.py

rhino3dm.py is a Python package that is OpenNURBS plus additional python bindings compiled to a C-extension library that can be used on all current versions of CPython (3.7 +) and is available on all platforms through PyPi.org

Supported Python platforms:

  • Windows (32 and 64 bit): Python 3.7 - 3.12
  • macOS 12: Python 3.7 - 3.12 (x86_64), Python 3.11 - 3.12 (Universal)
  • macOS 14: Python 3.8 - 3.12
  • linux: Python cp38-cp38 - cp312-cp312 via manylinux2014_x86_64
  • Other architectures, operating systems, and python versions are supported through source distributions on PyPi

Install using pip

The easiest way to access the rhino3dm.py libraries is to use the pip installer from the Python console:

pip install rhino3dm --user

If pip is not installed, go to the Pip Installation instructions

API Docs

The latest rhino3dm.py API Documentation

Example usage

  • Start the python console, then type:
>>> from rhino3dm import *
>>> center = Point3d(1,2,3)
>>> arc = Arc(center, 10, 1)
>>> nc = arc.ToNurbsCurve()
>>> start = nc.PointAtStart
>>> print(start)

See the RhinoCommon Documentation for further details on the class layout

Build it yourself

rhino3dm.py may be built from the source. To find out how to build rhino3dm.py for yourself go to the rhino3dm.py build page