Tag: polygon

Polygon | new package 3.0.4a

The source  package for Polygon 3.0.4 was missing a lot of files. This was caused by a bug in python’s setuptools package. I packaged a new file for version 3.0.4a . The source code was not changed but the contents should be complete now. Sorry for any problems you had with this issue!


Polygon | 2.0.4 & 3.0.4

New versions of my python package Polygon have been released today for python 2 and python 3. The source can be checked out from https://svn.origo.ethz.ch/polygon/tags/2.0.4/ and https://svn.origo.ethz.ch/polygon/tags/3.0.4/ , binary packages will follow in the next days. The changes include: added a function Utils.gpfInfo() to check files for the number of contours, holes and points and…


Polygon used in new VPython

I’m glad to see that the Polygon package is now used by the popular VPython software to support the creation of the new extrusion objects. The VPython authors even made a special license agreement that allows the use of GPC (and thus Polygon) free of charge for every purpose as part of the VPython distribution:…


Polygon | reading and writing gpc files

A user pointed me to a problem when reading and writing gpc files. GPC understands two kinds of files, with or without hole-flags. Polygon supports both formats, but this was not yet documented. When using the Polygon() constructor with a filename or the read() or write() methods you may specify an optional  second boolean argument….


Polygon | 2.0.3 & 3.0.3

Versions 2.0.3 and 3.0.3 of this python package have been released today. Both branches 2.0.x (for python 2.x, x>=5) and 3.0.3 (for python 3.x)  will be in sync in the future with identical features and an  almost identical API. For 2.0.3 only one new function (tileBSP()) was added. Have a look here for more information….


Polygon

|View all articles regarding Polygon| 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….