131 lines
2.2 KiB
POVRay
131 lines
2.2 KiB
POVRay
#include "treibstofftank.pov"
|
|
#include "speicherbank.pov"
|
|
#include "kraftwerk.pov"
|
|
|
|
#local Z = -35;
|
|
|
|
#local treibstofftank_block =
|
|
union {
|
|
#local rr = 15.5;
|
|
#local rr2 = sqrt(48*48 - Z*Z);
|
|
#while (rr < rr2)
|
|
#local da = degrees(asin(0.5/rr))*2;
|
|
#if (rr < 18 | rr > 31)
|
|
#local aa = degrees(asin(0.5/rr));
|
|
#else
|
|
#local aa = degrees(asin(2.6/rr));
|
|
#end
|
|
#local ae = 15 - degrees(asin(0.5/rr));
|
|
#local n = int((ae-aa)/da);
|
|
#local da = (ae-aa)/n;
|
|
#local i = 0;
|
|
#while (i <= n)
|
|
#local ss = 1;
|
|
#ifdef (SCHNITT_1)
|
|
#local pp = vrotate(<rr, 0, 0>, <0, aa, 0>);
|
|
#if (pp.x < 0 & pp.z < 0)
|
|
#local ss = 0;
|
|
#end
|
|
#end
|
|
#if (ss)
|
|
object {
|
|
treibstofftank
|
|
translate <rr, Z+0.2, 0>
|
|
rotate <0, aa, 0>
|
|
}
|
|
#end
|
|
#local aa = aa + da;
|
|
#local i = i + 1;
|
|
#end
|
|
#local rr = rr + 1.0;
|
|
#end
|
|
}
|
|
#declare deck_04 =
|
|
union {
|
|
#if (1)
|
|
intersection {
|
|
union {
|
|
difference {
|
|
object { huelle }
|
|
// Ausschnitte
|
|
}
|
|
}
|
|
box {
|
|
<-50, Z+5, -50>
|
|
< 50, Z+0, 50>
|
|
}
|
|
}
|
|
#end
|
|
difference {
|
|
cone {
|
|
<0, (Z+0.2), 0> sqrt(pow(49,2)-pow((Z+0.2),2)),
|
|
<0, (Z-0.2), 0> sqrt(pow(49,2)-pow((Z-0.2),2))
|
|
texture { T_arkonstahl }
|
|
}
|
|
|
|
// Ausschnitt f. Landestützen
|
|
#local aa = 0;
|
|
#while (aa < 360 )
|
|
union {
|
|
cone {
|
|
<23, Z-0.3, 0>, 2
|
|
<23, Z+0.3, 0>, 2
|
|
}
|
|
box {
|
|
<23, Z-0.3, -2>
|
|
<28, Z+0.3, +2>
|
|
}
|
|
cone {
|
|
<28, Z-0.3, 0>, 2
|
|
<28, Z+0.3, 0>, 2
|
|
}
|
|
texture { T_arkonstahl }
|
|
rotate <0, aa, 0>
|
|
}
|
|
#local aa = aa + 30;
|
|
#end
|
|
|
|
#if (SCHNITT_1)
|
|
intersection {
|
|
torus {
|
|
23, 23
|
|
}
|
|
plane {
|
|
<0, 0, -1> 0
|
|
rotate <0, 45, 0>
|
|
}
|
|
plane {
|
|
<0, 0, +1> 0
|
|
rotate <0, -45, 0>
|
|
}
|
|
rotate <0, 135, 0>
|
|
translate <0, Z, 0>
|
|
}
|
|
#end
|
|
}
|
|
|
|
|
|
#local ii = 0;
|
|
#while (ii < 12)
|
|
#local ss = 1;
|
|
#if (SCHNITT_1 & (ii >= 3 & ii <= 6))
|
|
#local ss = 0;
|
|
#end
|
|
#if (ss)
|
|
object {
|
|
treibstofftank_block
|
|
rotate <0, ii*30, 0>
|
|
}
|
|
object {
|
|
treibstofftank_block
|
|
scale <1, 1, -1>
|
|
rotate <0, ii*30, 0>
|
|
}
|
|
#end
|
|
#local ii = ii + 1;
|
|
#end
|
|
|
|
}
|
|
|
|
|