All Projects → mcneel → rhino.inside-cpython

mcneel / rhino.inside-cpython

Licence: MIT license
No description, website, or topics provided.

Programming Languages

python
139335 projects - #7 most used programming language

rhinoinside python package

Embed Rhino in CPython

pip install --user rhinoinside

Requirements:

  • Rhino 7
  • Windows
  • 64 bit version of CPython (2.7, 3.5, 3.6, 3.7, 3.8)

Join the discussion

https://discourse.mcneel.com/t/rhino-inside-python/78987

How to use

import rhinoinside
rhinoinside.load()
import System
import Rhino

# for now, you need to explicitly use floating point
# numbers in Point3d constructor
pts = System.Collections.Generic.List[Rhino.Geometry.Point3d]()
pts.Add(Rhino.Geometry.Point3d(0.0,0.0,0.0))
pts.Add(Rhino.Geometry.Point3d(1.0,0.0,0.0))
pts.Add(Rhino.Geometry.Point3d(1.5,2.0,0.0))

crv = Rhino.Geometry.Curve.CreateInterpolatedCurve(pts,3)
print (crv.GetLength())
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].