blob: e7e598e674abcd98bd1a44aeb1b6b2b1d938de8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>3D Polyhedron</name>
<id>org.inkscape.render.poly_3d</id>
<param name="tab" type="notebook">
<page name="common" gui-text="Model file">
<param name="obj" type="optiongroup" appearance="combo" gui-text="Object:">
<option value="cube">Cube</option>
<option value="trunc_cube">Truncated Cube</option>
<option value="snub_cube">Snub Cube</option>
<option value="cuboct">Cuboctahedron</option>
<option value="tet">Tetrahedron</option>
<option value="trunc_tet">Truncated Tetrahedron</option>
<option value="oct">Octahedron</option>
<option value="trunc_oct">Truncated Octahedron</option>
<option value="icos">Icosahedron</option>
<option value="trunc_icos">Truncated Icosahedron</option>
<option value="small_triam_icos">Small Triambic Icosahedron</option>
<option value="dodec">Dodecahedron</option>
<option value="trunc_dodec">Truncated Dodecahedron</option>
<option value="snub_dodec">Snub Dodecahedron</option>
<option value="great_dodec">Great Dodecahedron</option>
<option value="great_stel_dodec">Great Stellated Dodecahedron</option>
<option value="from_file">Load from file</option>
</param>
<param name="spec_file" type="string" gui-text="Filename:">great_rhombicuboct.obj</param>
<param name="type" type="optiongroup" appearance="combo" gui-text="Object Type:">
<option value="face">Face-Specified</option>
<option value="edge">Edge-Specified</option></param>
<param name="cw_wound" type="bool" gui-text="Clockwise wound object">false</param>
</page>
<page name="view" gui-text="View">
<param name="r1_ax" type="optiongroup" appearance="combo" gui-text="Rotate around:">
<option value="x">X-Axis</option>
<option value="y">Y-Axis</option>
<option value="z">Z-Axis</option></param>
<param name="r1_ang" type="float" min="-360" max="360" gui-text="Rotation (deg):">0</param>
<param name="r2_ax" type="optiongroup" appearance="combo" gui-text="Then rotate around:">
<option value="x">X-Axis</option>
<option value="y">Y-Axis</option>
<option value="z">Z-Axis</option></param>
<param name="r2_ang" type="float" min="-360" max="360" gui-text="Rotation (deg):">0</param>
<param name="r3_ax" type="optiongroup" appearance="combo" gui-text="Then rotate around:">
<option value="x">X-Axis</option>
<option value="y">Y-Axis</option>
<option value="z">Z-Axis</option></param>
<param name="r3_ang" type="float" min="-360" max="360" gui-text="Rotation (deg):">0</param>
<param name="r4_ax" type="optiongroup" appearance="combo" gui-text="Then rotate around:">
<option value="x">X-Axis</option>
<option value="y">Y-Axis</option>
<option value="z">Z-Axis</option></param>
<param name="r4_ang" type="float" min="-360" max="360" gui-text="Rotation (deg):">0</param>
<param name="r5_ax" type="optiongroup" appearance="combo" gui-text="Then rotate around:">
<option value="x">X-Axis</option>
<option value="y">Y-Axis</option>
<option value="z">Z-Axis</option></param>
<param name="r5_ang" type="float" min="-360" max="360" gui-text="Rotation (deg):">0</param>
<param name="r6_ax" type="optiongroup" appearance="combo" gui-text="Then rotate around:">
<option value="x">X-Axis</option>
<option value="y">Y-Axis</option>
<option value="z">Z-Axis</option></param>
<param name="r6_ang" type="float" min="-360" max="360" gui-text="Rotation (deg):">0</param>
</page>
<page name="style" gui-text="Style">
<param name="scl" type="float" min="0" max="10000" gui-text="Scaling factor:">100</param>
<param name="f_r" type="int" min="0" max="255" gui-text="Fill color, Red:">255</param>
<param name="f_g" type="int" min="0" max="255" gui-text="Fill color, Green:">0</param>
<param name="f_b" type="int" min="0" max="255" gui-text="Fill color, Blue:">0</param>
<param name="f_opac" type="int" min="0" max="100" gui-text="Fill opacity (%):">100</param>
<param name="s_opac" type="int" min="0" max="100" gui-text="Stroke opacity (%):">100</param>
<param name="th" type="float" min="0" max="100" gui-text="Stroke width (px):">2</param>
<param name="shade" type="bool" gui-text="Shading">true</param>
<param name="lv_x" type="float" min="-100" max="100" gui-text="Light X:">1</param>
<param name="lv_y" type="float" min="-100" max="100" gui-text="Light Y:">1</param>
<param name="lv_z" type="float" min="-100" max="100" gui-text="Light Z:">-2</param>
<param name="show" type="optiongroup" appearance="combo" gui-text="Show:">
<option value="fce">Faces</option>
<option value="edg">Edges</option>
<option value="vtx">Vertices</option>
</param>
<param name="back" type="bool" gui-text="Draw back-facing polygons">false</param>
<param name="z_sort" type="optiongroup" appearance="combo" gui-text="Z-sort faces by:">
<option value="max">Maximum</option>
<option value="min">Minimum</option>
<option value="cent">Centroid</option></param>
</page>
</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu name="Render"/>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">polyhedron_3d.py</command>
</script>
</inkscape-extension>
|