File: //usr/share/inkscape/extensions/convert2dashes.pyc
�
��Yc @ s� d Z d d l Z d d l Z d d l Z d d l Z d d � Z d d � Z d d d � Z d d � Z d e j f d
� � YZ
e d k r� e
� Z e j
� n d S( s�
This extension converts a path into a dashed line using 'stroke-dasharray'
It is a modification of the file addnodes.py
Copyright (C) 2005,2007 Aaron Spike, aaron@ekips.org
Copyright (C) 2009 Alvin Penner, penner@vaxxine.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����Ng �?c C s: | \ } } | \ } } | | | | | | | | g S( N( ( t .0t .1t tt x1t y1t x2t y2( ( s0 /usr/share/inkscape/extensions/convert2dashes.pyt tpoint s c C s� t | d | d | � } t | d | d | � } t | d | d | � } t | | | � } t | | | � } t | | | � } | d | d | g | | | g | | d | d g g S( Ni i i ( R ( t sp1t sp2R t m1t m2t m3t m4t m5t m( ( s0 /usr/share/inkscape/extensions/convert2dashes.pyt cspbezsplit s g����MbP?c C sK | d | d | d | d f } t j | | | � } t | | | � S( Ni i i ( t bezmisct beziertatlengthR ( R R t lt tolerancet bezR ( ( s0 /usr/share/inkscape/extensions/convert2dashes.pyt cspbezsplitatlength'