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 Distributions
Close
Hashes for rhinoinside-0.1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 498313a9641fab88609c605d4eeb50d3c77fd208ec4431605ec94ab78ed3b7f3 |
|
MD5 | b5f7f1278433596eeb1568f7e21e6706 |
|
BLAKE2b-256 | 08529e77bef899f0e13822227d04c3d21d2168130ee0fcf312c0e3d44c892287 |
Close
Hashes for rhinoinside-0.1.1-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23ad34cfd634b4dd5b7b21bed0d4890e5fb53876167d4d83698a11e3b529d845 |
|
MD5 | 1e702843146ee16a880b4ac402296dd5 |
|
BLAKE2b-256 | 295ff4f237f18701b72096e1002355d01879e562df59668306ff1deffbbbbcb7 |