A python package for converting rhino geometry into shapely geometry
Project description
rhino_shapely_interop
A python package for converting rhino geometry (https://www.rhino3d.com/) into shapely geometry (https://pypi.org/project/Shapely/).
Installation
$ pip install rhino-shapley-interop
Supported Geometry:
- Rhino Points -> Shapely Points
- Rhino Curves -> Shapely LineStrings
- Rhino Breps -> Shapely Polygon (limited to planer single surface breps)
Current Limitations:
- One way (Rhino to Shapely)
- Rhino is 3D, Shapely is 2D (effectively)
- Breps are limited to planer single surface breps
- A shapely plane is defined
- InstanceDefinition geometries are ignored (geometry listed in rhino3dm.File3dmInstanceDefinitionTable)
- Blocks
- Annotations
Examples:
See
example1.py
, andexample3.py
for importing from a fileexample2.py
for importing from serialized brep
Development/Contributions
- Fork and clone to a local working directory
- Setup a virtual environment
$ python -m venv env
$ source env/bin/activate
- Install in editable mode
$ pip install -e .[dev]
- Testing
$ python -m unittest test.unittests
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
Built Distribution
File details
Details for the file rhino_shapley_interop-0.0.4.tar.gz
.
File metadata
- Download URL: rhino_shapley_interop-0.0.4.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 798bd04fff8100d0d352f5d8460a19a2db3e0e31be76d0dfc9aa52b0ec6483e3 |
|
MD5 | 19009e1e918b0e8fa5814790ab1df6c1 |
|
BLAKE2b-256 | 7c5af217048676f89fdf3fc13064a283ef130e9d428aacc3449e018d03eed4c7 |
File details
Details for the file rhino_shapley_interop-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: rhino_shapley_interop-0.0.4-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7734d47e96648e0e230e486f6dbe9bc1608d9a9f3228e325a3eeef12bdaa86ab |
|
MD5 | aa3ebf09b0a115796cbf2d8330c69d86 |
|
BLAKE2b-256 | 74cf56a090c1f36e7badec54a09125e7054adcaec099027110971e79bcee07d7 |