Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/decitre/pykbool

a Cython wrapper around kbool
https://github.com/decitre/pykbool

Last synced: 1 day ago
JSON representation

a Cython wrapper around kbool

Awesome Lists containing this project

README

        

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.

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

.. image:: 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