Skip to main content

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

Project description

THIS VERSION WORKS WITH PYTHON-3.x ONLY!

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!

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

Polygon3-3.0.9.tar.gz (37.4 kB view details)

Uploaded Source

File details

Details for the file Polygon3-3.0.9.tar.gz.

File metadata

  • Download URL: Polygon3-3.0.9.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for Polygon3-3.0.9.tar.gz
Algorithm Hash digest
SHA256 86de2d820a4813c7ac26ea2f6a07ea24aaf2217a548cd63bd17a656739ae3052
MD5 51914d49f7a33fc1fecf85b3ccb45571
BLAKE2b-256 993864aa4cc5617cc05c7f41851ec3ff9f064de431f2fe3a25c7be8929fb1016

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page