Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

session_rhino-0.36.0.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

session_rhino-0.36.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file session_rhino-0.36.0.tar.gz.

File metadata

  • Download URL: session_rhino-0.36.0.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for session_rhino-0.36.0.tar.gz
Algorithm Hash digest
SHA256 6a2c24cb5853a3113e359d736efa9f18751b1ef1e43a47d5e55f0046d9636f86
MD5 8a24945d4edd8e4ced33a028655762d9
BLAKE2b-256 fa2d765995ea173cf47571000965da45e8321c832249ec9b0f33e0b63aaa5f79

See more details on using hashes here.

Provenance

The following attestation bundles were made for session_rhino-0.36.0.tar.gz:

Publisher: publish.yml on petrasvestartas/session_rhino

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file session_rhino-0.36.0-py3-none-any.whl.

File metadata

  • Download URL: session_rhino-0.36.0-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for session_rhino-0.36.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1650709f7766c82f9e2366b73a97f8bdab2185fd07b008351284168a5123af0f
MD5 8bf5d371d483bcadf6b4be0f4154516d
BLAKE2b-256 28d52eddadd7de3318d50a4ae85f7ec30b65c110b8bdc99e1015d4aa5f9a72a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for session_rhino-0.36.0-py3-none-any.whl:

Publisher: publish.yml on petrasvestartas/session_rhino

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page