Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Polygon2 is a Python-2 package that handles polygonal shapes in 2D

Project Description

THIS VERSION WORKS WITH PYTHON-2.x ONLY! IT IS THE LAST VERSION OF THE PYTHON-2 BRANCH, THERE WILL BE NO MORE UPDATES!

Polygon is a python package that handles polygonal shapes in 2D. It contains Python bindings for gpc, the excellent General Polygon Clipping Library by Alan Murta and some extensions written in C and pure Python. With Polygon you may handle complex polygonal shapes in Python in a very intuitive way. Polygons are simple Python objects, clipping operations are bound to standard operators like +, -, |, & and ^. TriStrips can be constructed from Polygons with a single statement. Functions to compute the area, center point, convex hull, point containment and much more are included. This package was already used to process shapes with more than one million points!

The gpc homepage is located at http://www.cs.man.ac.uk/~toby/alan/software/ .

The wrapping and extension code is free software, but the core gpc library is free for non-commercial usage only. The author says:

GPC is free for non-commercial use only. We invite non-commercial users to make a voluntary donation towards the upkeep of GPC.

If you wish to use GPC in support of a commercial product, you must obtain an official GPC Commercial Use Licence from The University of Manchester.

Please respect this statement and contact the author (see gpc homepage) if you wish to use this software in commercial projects!

Release History

Release History

This version
History Node

2.0.8

History Node

2.0.7

History Node

2.0.6

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Polygon2-2.0.8.linux-x86_64.tar.gz (100.8 kB) Copy SHA256 Checksum SHA256 2.7 Dumb Binary Nov 5, 2015
Polygon2-2.0.8.tar.gz (69.3 kB) Copy SHA256 Checksum SHA256 Source Nov 5, 2015
Polygon2-2.0.8.win-amd64-py2.7.exe (267.3 kB) Copy SHA256 Checksum SHA256 2.7 Windows Installer Nov 5, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting