An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.com/smidm/shape.svg?branch=main)](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
- lightweight

https://github.com/shapely/shapely
- complex
- based on C++ GEOS library