https://github.com/smidm/shape
2D shapes abstraction Python package
https://github.com/smidm/shape
Last synced: 3 months ago
JSON representation
2D shapes abstraction Python package
- Host: GitHub
- URL: https://github.com/smidm/shape
- Owner: smidm
- License: mit
- Created: 2021-12-27T07:24:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-25T16:24:26.000Z (about 3 years ago)
- Last Synced: 2025-03-05T21:04:11.067Z (3 months ago)
- Language: Python
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://travis-ci.com/smidm/shape)
`shape` is a Python package for 2D shapes handling.
# Features
- objects:
- abstract shape
- point
- polygon
- bounding box
- rotated bounding box
- ellipse
- relations: intersection, closeness
- manipulation: move and rotate
- visualization using matplotlib# Installation
`pip install shape`
# Documentation
See tests for now.
# Alternatives
https://github.com/varunagrawal/bbox
- bounding box only
- lightweighthttps://github.com/shapely/shapely
- complex
- based on C++ GEOS library