File: //usr/share/inkscape/extensions/fractalize.pyc
�
��Yc @ s~ d Z d d l Z d d l Z d d l Z d d l Z d � Z d e j f d � � YZ e d k rz e � Z e j
� n d S( s�
Copyright (C) 2005 Carsten Goetze c.goetze@tu-bs.de
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����Nc C s� | | } | | } | | d } | | d } t j | | | | � } | d k ro | | }
| | } n d }
d } t j | d | | d | � } |
| }
| | } | |
}
| | } |
| g S( s. Calculate the vector from (x1,y1) to (x2,y2) i i i ( t matht sqrtt randomt uniform( t x1t y1t x2t y2t
smoothnesst x3t y3t hxt hyt lengtht nxt nyt rt xt y( ( s, /usr/share/inkscape/extensions/fractalize.pyt calculateSubdivision s
#
t PathFractalizec B s# e Z d � Z d � Z d � Z RS( c
C sv t j j | � | j j d d d d d d d d d d
d d �| j j d
d d d d d d d d d d d �d S( Ns -ss --subdivst actiont storet typet intt destt subdivst defaultt 6t helps Number of subdivisonss -fs --smootht floatt smooths 4.0s Smoothness of the subdivision( t inkext Effectt __init__t OptionParsert
add_option( t self( ( s, /usr/share/inkscape/extensions/fractalize.pyR"