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)
| File | Size | Uploaded | |
|---|---|---|---|
| rhino_shapely_converter-0.1.3.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|