Here’s a new toy for the python crowd.
You’ll need to have the Rhino 7 WIP installed on Windows.
This allows you to embed and get access to RhinoCommon from inside of CPython.
You must be running a 64-bit version of Python
- You can use either Python 2.7 or Python 3.7
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())