RhinoCommon converters for session_py geometry
Project description
session_rhino
RhinoCommon converters for session_py geometry. Runs inside Rhino 8 Python 3.
Install
pip install session-rhino
Or for local development inside Rhino:
./rhino.sh
Usage
from session_py import Point
from session_py import NurbsCurve
from session_rhino.session import Session
session = Session()
# points
session.add(Point(1, 2, 3))
session.add([Point(0, 0, 0), Point(1, 0, 0)])
# nurbs curve
pts = [Point(0, 0, 0), Point(1, 1, 0), Point(2, 0, 0), Point(3, 1, 0)]
curve = NurbsCurve.create(periodic=False, degree=2, points=pts)
session.add(curve)
# divide curve and add points
divided, params = curve.divide_by_count(10, True)
session.add(divided)
# perpendicular frames along curve
frames = curve.get_perpendicular_planes(10)
session.add(frames, scale=0.2)
session.draw(delete=True)
Modules
| Module | session_py | RhinoCommon |
|---|---|---|
rhino_point |
Point | Point3d |
rhino_line |
Line | Line |
rhino_plane |
Plane | Plane |
rhino_polyline |
Polyline | Polyline |
rhino_mesh |
Mesh | Mesh |
rhino_nurbscurve |
NurbsCurve | NurbsCurve |
rhino_nurbssurface |
NurbsSurface | NurbsSurface |
rhino_brep |
— | Brep |
Hot reload
from session_py.reload import reload_all
reload_all()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file session_rhino-0.14.0.tar.gz.
File metadata
- Download URL: session_rhino-0.14.0.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebb866d4b8549ab52ed570922b888df52de1de7d4b9ce5cd747470b4b0beda66
|
|
| MD5 |
68b81fd30ef9780e3478776acb0744a1
|
|
| BLAKE2b-256 |
1f3fb645214fe58928d117948a022ca433fb2bcf2741e892b38fb4265689adcd
|
Provenance
The following attestation bundles were made for session_rhino-0.14.0.tar.gz:
Publisher:
publish.yml on petrasvestartas/session_rhino
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
session_rhino-0.14.0.tar.gz -
Subject digest:
ebb866d4b8549ab52ed570922b888df52de1de7d4b9ce5cd747470b4b0beda66 - Sigstore transparency entry: 1253338755
- Sigstore integration time:
-
Permalink:
petrasvestartas/session_rhino@93fd3c0aa53858d270636f997232f6b649206008 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/petrasvestartas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@93fd3c0aa53858d270636f997232f6b649206008 -
Trigger Event:
push
-
Statement type:
File details
Details for the file session_rhino-0.14.0-py3-none-any.whl.
File metadata
- Download URL: session_rhino-0.14.0-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bc1a0e54fc93253f8428c997b3e048717a7d2792e2980c756b68632c9c4375f
|
|
| MD5 |
9776bcc98b1afa8f60412dd8f46d20ed
|
|
| BLAKE2b-256 |
1b92275a96b2a2a504b0f6abecaf28dcfd873cf49279bfadbf44025ebad3638d
|
Provenance
The following attestation bundles were made for session_rhino-0.14.0-py3-none-any.whl:
Publisher:
publish.yml on petrasvestartas/session_rhino
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
session_rhino-0.14.0-py3-none-any.whl -
Subject digest:
8bc1a0e54fc93253f8428c997b3e048717a7d2792e2980c756b68632c9c4375f - Sigstore transparency entry: 1253338876
- Sigstore integration time:
-
Permalink:
petrasvestartas/session_rhino@93fd3c0aa53858d270636f997232f6b649206008 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/petrasvestartas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@93fd3c0aa53858d270636f997232f6b649206008 -
Trigger Event:
push
-
Statement type: