File: //usr/share/inkscape/extensions/generate_voronoi.pyo
�
��Yc @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z y d d l m Z m Z WnD e j e
d � � e j e
d � e e j j
� � e � n Xd � Z d e j f d � � YZ e d k r� e � Z e j � n d S(
s�
Copyright (C) 2010 Alvin Penner, penner@vaxxine.com
- Voronoi Diagram algorithm and C code by Steven Fortune, 1987, http://ect.bell-labs.com/who/sjf/
- Python translation to file voronoi.py by Bill Simons, 2005, http://www.oxfish.com/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
i����N( t Popent PIPEsl Failed to import the subprocess module. Please report this as a bug at: https://bugs.launchpad.net/inkscape.s Python version is: c C s` | d k r( | d k r( d d d d g S| | k rP | | k rP d d d d g S| d k r | | | | | | } d } n | d k r� | | | | | | } d } n | | k r� | | | | | | | } | } n | | k r| | | | | | | } | } n | d k r<| d k r<d d d d g S| | k rd| | k rdd d d d g S| | k r�| | k r�d d d d g S| d k r�| | | | | | } d } n | d k r�| | | | | | } d } n | | k r| | | | | | | } | } n | | k rP| | | | | | | } | } n | | | | g S( Ni ( ( t x1t y1t x2t y2t wt h( ( s2 /usr/share/inkscape/extensions/generate_voronoi.pyt clip_line% sF t Patternc B s e Z d � Z d � Z RS( c C s� t j j | � | j j d d d d d d d d d d
d �| j j d d d d d d d
d d d
d �| j j d d d d d d d d
d �d S( Ns --sizet actiont storet typet intt destt sizet defaulti
t helps Average size of cell (px)s --bordert borderi s Size of Border (px)s --tabt stringt tabs'