Skip to main content

rhino-shapely-converter

This is to convert rhino geometry to shapely geometry and vice versa.

Installation

pip install rhino-shapely-converter

Important Notes

  • Shapely is not an appropriate library for 3d calculations.
  • It is recommended to use for 2d calculations mainly.

Notes

  • Rhino Point3d will be converted to Shapely Point.

  • Rhino Point2d will be converted to Shapely Point.

  • Rhino Point will be converted to Shapely Point.

  • Rhino PointCloud will be converted to Shapely MultiPoint.

  • Rhino Line will be converted to Shapely LineString.

  • Rhino Polyline will be converted to Shapely LineString.

  • Rhino PolylineCurve will be converted to Shapely LineString.

  • Shapely Point will be converted to Rhino Point3d.

  • Shapely MultiPoint will be converted to Rhino PointCloud.

  • Shapely LineString will be converted to Rhino Polyline.

Usage

# please check current possible types to convert above
from rhino_shapely_converter import (
    convert_rhino_geometry_to_shapely_geometry,
    convert_shapely_geometry_to_rhino_geometry,
)

# Convert rhino geometry to shapely geometry
shapely_geometry = convert_rhino_geometry_to_shapely_geometry(rhino_geometry)

# Convert shapely geometry to rhino geometry
rhino_geometry = convert_shapely_geometry_to_rhino_geometry(shapely_geometry)

Metadata

Release files for rhino-shapely-converter 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rhino-shapely-converter 0.1.3
File Size Uploaded
rhino_shapely_converter-0.1.3.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rhino-shapely-converter 0.1.3
File Interpreter ABI Platform
rhino_shapely_converter-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / rhino_shapely_converter-0.1.3.tar.gz

Download URL rhino_shapely_converter-0.1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b428dd5349ae2c44b28abe70e8cfe75112d197b47b7ad01d48760d993e7e014e
BLAKE2b-256 checksum
How to use checksums
fec700c43e192793b6aa09b7483beac4af2ec87ed07ac609aad4913bd8e2ae1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.20

Release files / rhino_shapely_converter-0.1.3-py3-none-any.whl

Download URL rhino_shapely_converter-0.1.3-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a38105ded0813378cf000b5ac3b8671dfca478ab13df9fbdfbac3ee52925cb5f
BLAKE2b-256 checksum
How to use checksums
49310a03c495cca9da323da7d8e1ec90172d80b8da646e5dd22f6e942ff45b9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page