-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.xml
46 lines (39 loc) · 1.24 KB
/
index.xml
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
<craft name="candle">
<parameter name="width" type="int" default="8"/>
<parameter name="height" type="int" default="45"/>
<style>
wax { color: palegoldenrod; }
.wick { color: black; }
.flamebase { color: orangered; }
flame { color: darkorange; }
</style>
<part name="wax">
<stack spacing="-1">
<cylinder radius="{{(width / 2) - 1}}" height="1"/>
<script type="text/openjscad">
function main() {
return torus({
ri: 1,
ro: (params.width / 2) - 1,
fni: 16
});
}
</script>
<cylinder radius="{{width / 2}}" height="{{height}}"/>
</stack>
</part>
<part name="flame">
<solidify>
<stack spacing="5.5">
<circle radius="0.01"></circle>
<circle radius="0.99"></circle>
</stack>
</solidify>
</part>
<stack spacing="-1">
<flame></flame>
<sphere radius="1" t="scale(1,1,1.2)" class="flamebase"/>
<cylinder radius="0.2" height="3" class="wick"/>
<wax></wax>
</stack>
</craft>