File: //usr/share/inkscape/extensions/flatten.pyc
�
��Yc @ su d Z d d l Z d d l Z d d l Z d d l Z d e j f d � � YZ e d k rq e � Z e j � n d S( s�
Copyright (C) 2006 Aaron Spike, aaron@ekips.org
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����Nt MyEffectc B s e Z d � Z d � Z RS( c
C sE t j j | � | j j d d d d d d d d d d
d d �d S(
Ns -fs
--flatnesst actiont storet typet floatt destt flatt defaultg $@t helps) Minimum flatness of the subdivided curves( t inkext Effectt __init__t OptionParsert
add_option( t self( ( s) /usr/share/inkscape/extensions/flatten.pyR s
c
C s x� | j j � D]� \ } } | j t j d d � k r | j d � } t j | � } t j | | j j
� g } xi | D]a } t } xR | D]J } d } | r� d } n t } | j
| | d d | d d g g � q� Wqx W| j d t j | � � q q Wd S( Nt patht svgt dt Lt Mi i ( t selectedt iteritemst tagR t addNSt gett cubicsuperpatht parsePatht cspsubdivt optionsR t Truet Falset appendt sett
simplepatht
formatPath(
R t idt nodeR t pt npt spt firstt cspt cmd( ( s) /usr/share/inkscape/extensions/flatten.pyt effect s
1( t __name__t
__module__R R+ ( ( ( s) /usr/share/inkscape/extensions/flatten.pyR s t __main__(
t __doc__R R R! R R
R R, t et affect( ( ( s) /usr/share/inkscape/extensions/flatten.pyt <module> s
0