pykbool

Cython wrapper for the kbool library (graph based polygon clipper)


Licenses
LGPL-2.0/LGPL-3.0
Install
pip install pykbool==0.1.2

Documentation

pykbool is a Cython wrapper exposing the kbool library.

kbool is a polygon clipper provided within the wxArt2D framework as a third party library.

kbool was originally written by Klaas Holwerda.

One of kbool's feature is to provide connected keyhole polygons, which can be useful when rendering with engines not supporting polygons with holes like Tk.

https://raw.githubusercontent.com/decitre/pykbool/master/data/not_connected.png

https://raw.githubusercontent.com/decitre/pykbool/master/data/connected.png

kbool can be checked out from wxart2d SVN repo or extracted from the r842 archive:

$ svn co http://svn.code.sf.net/p/wxart2d/code/trunk/wxArt2D/thirdparty/kbool
$ tar xvfz data/kbool-wxart2d-code-842-trunk.tgz

pykbool installation and demos:

$ python setup.py install
$ python setup.py demo1
$ python setup.py demo2