Polygon | new version 2.0.6 and 3.0.6

Polygon logoI just released the new version of my packages for polygon handling with Python 2 and Python 3. There are only small changes, the most important ones are:

  1. moved development and downloads from GitHub to bitbucket after GitHub closed the download area,
  2. renamed the packages from Polygon to Polygon2 and Polygon3 to avoid confusion, especially on pypi,
  3. added a Douglas-Peucker simplification routine to Polygon3.

From now on I will implement new features in Polygon3 while Polygon2 will receive bugfixes only.

Binary packages for Windows will follow. I currently can't compile x64 binaries for Python 3.3 because neither my Visual Studio 2008 nor Visual Studio 2010 Express supports this. I would appreciate any help for this or the contribution of packages.

 

 

Polygon | Douglas-Peucker and Future Development

Polygon logoThe Polygon3 branch now includes an implementation of the Douglas-Peucker algorithm for line simplification by reducing the number of points. It is already included in the repository and will be part of the next release.

Now that python 3.3 is out I decided to focus much more on python-3. This has some impact on my development of python modules. Bugs in the Polygon2 branch (for python 2.x) will be fixed in the near future but new features will only be implemented in the Polygon3 branch.

Polygon | more Windows binaries

Polygon logoI just added more Windows binaries of my python package for polygon handling to the download areas on GitHub. You can download the following variants:

  • for Python 2.7 or Python 3.2 (Polygon 2 / Polygon 3)
  • for 32 or 64bit Windows (win32 / win-amd64)
  • with or without support for numpy compiled in (version 1.6.2)

Please report any problems you have with the packages.

Polygon | new versions 2.0.5 and 3.0.5

Polygon logo

I released new versions of my python package for polygon handling. The changes contain only bug fixes, no new features were added:

  • fixes some issues with recent versions of NumPy
  • fixes some issues with recent versions of Python 2 and 3
  • NumPy support is enabled by default now

Source and binary Packages for Python 2 and 3 will be available on GitHub and PyPI soon.

Polygon development moves to GitHub

The development of the python package Polygon was moved to github. I created two projects for the code for python 2 and 3.

The project pages at origo.ethz.ch will be closed soon. The information was updated at pypi.python.org, but no code was changed yet. Since there are no known bugs and feature requests right now, new versions are not scheduled for the near future.

Polygon 2: https://github.com/jraedler/Polygon2

Polygon 3: https://github.com/jraedler/Polygon3

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 the hole flag
  • updated the documentation about the handling of files with the optional hole flag
  • fixed a bug in the function IO.writeSVG()
  • 3.0.4: fixed a bug in the function IO.encodeBinary()

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 is being distributed subject to the following conditions: This distribution contains code from the GPC Library, and/or code resulting from the use of the GPC Library. This usage has been authorized by The University of Manchester, on the understanding that the GPC-related features are used only in the context of this distribution. It is not permitted to extract the GPC code from the distribution as the basis for commercial exploitation, unless a GPC Commercial Use Licence is obtained from The University of Manchester, contact: http://www.cs.man.ac.uk/~toby/gpc/