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.6.0.tar.gz
(5.2 kB
view details)
File details
Details for the file rhinoinside-0.6.0.tar.gz
.
File metadata
- Download URL: rhinoinside-0.6.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6793b6f747f47c0004bf295008723a791f92e67142edf5cc8e2bf104efa330e3 |
|
MD5 | 3d60b7e88f045b6d95eccea50e818a74 |
|
BLAKE2b-256 | b1dc7b06ff0ca0b9e35150d6e73cf03af6db678b995ed06a9b318b53f033ea15 |