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

./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_mesh Mesh Mesh
rhino_nurbscurve NurbsCurve NurbsCurve

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.1.2.tar.gz (20.7 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.1.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for session_rhino-0.1.2.tar.gz
Algorithm Hash digest
SHA256 488d40a79cadc2dd820b32d961e96e135f4364549c197cbee0359be407aa533d
MD5 338f433b9d618049c0138d14f56edf4e
BLAKE2b-256 7f83271a5b0359d83459a4506860ec896fdf0b7827f8f1d4e41912d793feadbb

See more details on using hashes here.

Provenance

The following attestation bundles were made for session_rhino-0.1.2.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.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for session_rhino-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ff65a580f841fa36d5b8c95fe0088c04af5d84d4dbc8f9fb9a3ba4cee6e7e40
MD5 188825a14617a814c71acc514e20273e
BLAKE2b-256 65c7c611a08f28ea20cec37fe49ed5d6f8586b6bc5f3837368a8f81a04489565

See more details on using hashes here.

Provenance

The following attestation bundles were made for session_rhino-0.1.2-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