A python package for converting rhino geometry (https://www.rhino3d.com/) into shapely geometry (https://pypi.org/project/Shapely/).
$ pip install rhino-shapley-interop
- Rhino Points -> Shapely Points
- Rhino Curves -> Shapely LineStrings
- Rhino Breps -> Shapely Polygon (limited to planer single surface breps)
- 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
See
example1.py
, andexample3.py
for importing from a fileexample2.py
for importing from serialized brep
- 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