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, 3.5, 3.6, 3.7)
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())
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 Distribution
rhinoinside-0.5.0.tar.gz
(4.6 kB
view details)
File details
Details for the file rhinoinside-0.5.0.tar.gz
.
File metadata
- Download URL: rhinoinside-0.5.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6876e5caa9124f6c9472542a21dbc08c598391e382747ec3a1de5be2cea8a458 |
|
MD5 | 2a1ab47f890d702a1c3fcd7c3dfd35a6 |
|
BLAKE2b-256 | 48a2bd009fd38a5e0917f0809967efe1de1bad1770fd4302379abe28e06ab69a |