HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/extrude.pyo
�
��Yc@s�dZddlZddlZddlZddlZddlZdejfd��YZedkr}e�Z	e	j
�ndS(s�
Copyright (C) 2007

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����NtExtrudecBseZd�Zd�ZRS(cCswtjj|�dg}xW|D]O}|jj|d|dd	d
d|dd
|dd|dd|d�q WdS(Ns-ms--modetstringtmodetLiness!Join paths with lines or polygonsiitactiontstorettypeitdestitdefaultithelpi(s-ms--modesstringsmodeRs!Join paths with lines or polygons(tinkextEffectt__init__tOptionParsert
add_option(tselftoptsto((s)/usr/share/inkscape/extensions/extrude.pyRs	
*c
Cs�g}x<|jj�D]+\}}|jdkr|j|�qqWt|�dkrntjtd��dSgtt|��D]"}t	j
||jd��^q�}xitt|��D]U}d||j�kr�||jd�}t
j|�}t
j|||�q�q�Wx�tdt|��D]�}x�t|dt|��D]z}g}	x�tdttt|���D]�}g}
xwtdtt|||�t|||���D]A}|
j||||dd||||ddg�q�W|	j|
�qvW|jjj�d	krg}xY|	D]Q}
xHt|
�D]:\}
}|d
|dfg7}|d|dfg7}qEWq2Wtjjd�}|djd�dj|�|jdtj|��id
d6dd6dd6|jd�d6}|jdtj|��qK|jjj�dkrKtjjd�}idd6dd6dd6dd6|jd�d6}|jdtj|��|djd�dj|�x|	D]
}
xt|
�D]�\}
}|
d}|t|
�kr�d}ng}|d
|
|
dfg7}|d|
|
dfg7}|d|
|dfg7}|d|
|dfg7}|d|
|
dfg7}tjjd�}|j|�|jdtj|��q�Wq�WqKqKWq+WdS(Ns {http://www.w3.org/2000/svg}pathisNeed at least 2 paths selectedtdt	transformiii����tlinestMtLs..tnonetfills#000000tstrokesstroke-opacityt1pxsstroke-widthtstyletpolygonss{http://www.w3.org/2000/svg}gg333333�?sfill-opacityg333333�?t2px(tselectedt	iteritemsttagtappendtlenR
terrormsgt_trangetcubicsuperpatht	parsePathtgettkeystsimpletransformtparseTransformtapplyTransformToPathtmintmaptoptionsRtlowert	enumeratetetreetElementtxpathtsett
simplepatht
formatPathtunittouutsimplestyletformatStyle(Rtpathstidtnodetitptsttranstn1tn2tvertstcomptjtlinetntvteleRtgtnn((s)/usr/share/inkscape/extensions/extrude.pyteffect$sz8 %;?


	
(t__name__t
__module__RRL(((s)/usr/share/inkscape/extensions/extrude.pyRs		t__main__(t__doc__R
R6R9R*R&RRRMtetaffect(((s)/usr/share/inkscape/extensions/extrude.pyt<module>sO