-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen_box.inx
executable file
·78 lines (77 loc) · 4.43 KB
/
gen_box.inx
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
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension>
<_name>boxes generator</_name>
<id>fr.fablab-lannion.inkscape.gen_box</id>
<dependency type="executable" location="extensions">gen_box.py</dependency>
<dependency type="executable" location="extensions">th_inkscape_path.py</dependency>
<param name="Topic" type="notebook">
<page name="dimensions" _gui-text="Box dimensions">
<param name="unit" type="enum" _gui-text="Unit">
<_item value="mm">mm</_item>
<_item value="cm">cm</_item>
<_item value="m">m</_item>
<_item value="km">km</_item>
<_item value="in">in</_item>
<_item value="ft">ft</_item>
<_item value="yd">yd</_item>
<_item value="pt">pt</_item>
<_item value="px">px</_item>
<_item value="pc">pc</_item>
</param>
<_param name="name" type="description" appearance="header">Internal dimensions for the box</_param>
<param name="x" type="float" min="10.0" max="1000.0" _gui-text="width">80.0</param>
<param name="y" type="float" min="10.0" max="1000.0" _gui-text="depth">60.0</param>
<param name="z" type="float" min="10.0" max="1000.0" _gui-text="height">40.0</param>
<param name="thickness" type="float" min="1.0" max="10.0" _gui-text="thickness of material">3.0</param>
<param name="burn" type="float" min="0.0" max="2.0" _gui-text="Burn factor">0.1</param>
</page>
<page name="corners" _gui-text="Round corners">
<param name="StraigthCorners" type="boolean" _gui-text="Straight corners">true</param>
<_param name="name" type="description">If not straight corners, radius of each corner</_param>
<param name="back_left_radius" type="float" min="0.0" max="100.0" _gui-text="Back left radius">10.0</param>
<param name="back_right_radius" type="float" min="0.0" max="100.0" _gui-text="Back right radius">10.0</param>
<param name="front_left_radius" type="float" min="0.0" max="100.0" _gui-text="Front left radius">10.0</param>
<param name="front_right_radius" type="float" min="0.0" max="100.0" _gui-text="Front right radius">10.0</param>
<param name="Halves_x_2" type="boolean" gui-text="With 4 rouded corners cut the flex band in 2 halves">false</param>
</page>
<page name="Lid" _gui-text="Lid style">
<param name="lid_type" type="enum" _gui-text="Lid style">
<_item value="Without">Without lid</_item>
<_item value="Closed">Closed box</_item>
<_item value="Simple">Simple top</_item>
<_item value="Sliding">Sliding lid</_item>
<_item value="WoodHinge">Integrated wood hinge</_item>
<_item value="SteelHinge">Steel hinge</_item>
<_item value="Coffin">Coffin</_item>
<item value="SlidingRounded">Rounded sliding</item>
</param>
<_param name="name" type="description" appearance="header">Only used with real lid</_param>
<param name="z_lid" type="float" min="15.0" max="1000.0" _gui-text="Lid height">20.0</param>
<_param name="name" type="description" appearance="header">Only used with coffin lid</_param>
<param name="z_dome_lid" type="float" min="15.0" max="1000.0" _gui-text="dome lid height">20.0</param>
<param name="SkipFlexLines" type="boolean" _gui-text="Skip flex lines when possible">true</param>
<_param name="name" type="description" appearance="header">Only used with rounded sliding lid</_param>
<param name="radius_lid" type="float" min="15.0" max="1000.0" _gui-text="Radius lid">50.0</param>
</page>
<page name="Slots" _gui-text="Internal slots">
<param name="n_slot_x" type="int" min="1" max="20" _gui-text="Number of columns">1</param>
<param name="n_slot_y" type="int" min="1" max="20" _gui-text="Number of rows">1</param>
<param name="h_slot" type="int" min="40" max="100" _gui-text="Height of slots (%)">1</param>
</page>
<page name="Joints" _gui-text="Joints">
<param name="AutoSize" type="boolean" _gui-text="Finger size computed from box dimensions">true</param>
<param name="x_joint" type="float" min="1.0" max="100.0" _gui-text="Finger size for joints in X direction">5.0</param>
<param name="y_joint" type="float" min="1.0" max="100.0" _gui-text="Finger size for joints in Y direction">5.0</param>
<param name="z_joint" type="float" min="1.0" max="100.0" _gui-text="Finger size for joints in Z direction">5.0</param>
</page>
</param>
<effect needs-live-preview="false">
<object-type>all</object-type>
<effects-menu>
<submenu _name="Fablab"/>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">gen_box.py</command>
</script>
</inkscape-extension>