|
![](/i/fill.gif) |
There's really no need for formulas... let POV do the work:
#local dTheta = 45;
#local Pt1 = vrotate(<0, Height, Rad>, dTheta/2 * y);
#local Pt2 = <-1, 1, 1> * Pt1;
#local Roof =
union {
#local T = 0;
#while (T < 360)
triangle {
Pt1,
0,
Pt2
rotate T * y
}
#declare T = T + dTheta;
#end
}
>> #declare Pt1 = <-Base/2,Height,Rad>;
>> #declare Pt2 = <Base/2,Height,Rad>;
> #declare Base = Circ/8;
> #declare Base = 2*Rad*tan(pi/8);
--
http://www.flash.net/~djconnel/
Post a reply to this message
|
![](/i/fill.gif) |