Embed Rhino in CPython
Project description
rhinoinside python package
Embed Rhino in CPython
pip install --user rhinoinside
Requirements:
- Rhino 7
- Windows
- 64 bit version of CPython (2.7+ or 3.3+ should work)
How to use
import rhinoinside
import System
import Rhino
# for now, you need to explicitly use floating point
# numbers in Point3d constructor
pts = System.Collections.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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for rhinoinside-0.1.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e8118ba24dbba268e8b2b9ecd3435a8acc6567f729d95579103639882ad41a4 |
|
MD5 | 732a7eeee9a57ccbe98a8ecedf3c0d5d |
|
BLAKE2b-256 | 9794112bb3b0c7e2d3a2f2b1a6c76ad06baa3048dc5b7515e348cac25b4a75b3 |