3d/pr/schneller_kreuzer/deck_16.pov

72 lines
1.1 KiB
POVRay

#include "treibstofftank.pov"
#declare deck_16 =
union {
#if (1)
intersection {
union {
difference {
object { huelle }
// Ausschnitte
}
}
box {
< 50, 30, 50>
<-50, 25, -50>
}
}
#end
difference {
cone {
<0, 25.2, 0> 42.0
<0, 24.8, 0> 42.2
texture { T_arkonstahl }
}
// Ausschnitt f. Anlagen v. Deck 15 u. 13.
cylinder {
<0, 24, 0> <0, 26, 0> 25
}
#ifdef (SCHNITT_1)
intersection {
torus {
21, 21
}
plane {
<0, 0, -1> 0
rotate <0, 45, 0>
}
plane {
<0, 0, +1> 0
rotate <0, -45, 0>
}
rotate <0, 135, 0>
translate <0, 25.0, 0>
}
#end
}
#local rr = 25.5;
#while (rr < 37.6)
#local da = degrees(asin(0.5/rr))*2;
#local aa = 0;
#while (aa <= 360 - da)
#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, 25.2, 0>
rotate <0, aa, 0>
}
#end
#local aa = aa + da;
#end
#local rr = rr + 1.0;
#end
}