| 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 : |
o
0�aU= � @ s d Z ddlZddlmZmZmZmZmZmZ ddl Z ddl
mZ ddl mZm
Z
ddlmZmZ zddlZW n dZY dd� Zd d
� Zdd� Zd
d� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� ZG dd� de�ZG dd � d e�ZG d!d"� d"e j �Z!e"d#kr�e!� �#� dS dS )$as
This extension draws 3d objects from a Wavefront .obj 3D file stored in a local folder
Many settings for appearance, lighting, rotation, etc are available.
^y
|
__--``| |_--``| __--
__--`` | __--``| |_--``
| z | | |_--``|
| <----|--------|-----_0-----|----------------
| | |_--`` | |
| __--`` <-``| |_--``
|__--`` x |__--``|
IMAGE PLANE SCENE|
|
Vertices are given as "v" followed by three numbers (x,y,z).
All files need a vertex list
v x.xxx y.yyy z.zzz
Faces are given by a list of vertices
(vertex 1 is the first in the list above, 2 the second, etc):
f 1 2 3
Edges are given by a list of vertices. These will be broken down
into adjacent pairs automatically.
l 1 2 3
Faces are rendered according to the painter's algorithm and perhaps
back-face culling, if selected. The parameter to sort the faces by
is user-selectable between max, min and average z-value of the vertices
� N)�acos�cos�floor�pi�sin�sqrt)�pairwise)�Group�Circle)�Move�Linec C s<