Location: PHPKode > projects > PHP Cad and Drawing Program > functions/circleroof.inc
AAAAAAAAAAAAAAAAAAAAAAAAA
//
//  ** Text Editor ** 3D
//  Circular Roof Around a Tower
//  height is the height to start roof
//  $lowerheight height cone would go if no second part
//  $lower radius, the radius of the roof
//  $upperheight total height the roof will go
//  $upper radius, I think it sohoud be smaller that the lower radius.
// povray only
function circleroof($image,$height,$lowerheight,$lowerradius,$upperheight,$upperradius,$scale,$x,$y) {
}
BBBBBBBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCCC
function circleroof($image,$height,$lowerheight,$lowerradius,$upperheight,$upperradius,$scale,$x,$y) {
global $zz;
global $floor;
$ot="
union{
     cone{<0,0,0>,$lowerradius,<0,$lowerheight,0>,0  translate<$x,$height,$y>
         texture{pigment{color Scarlet}
         finish {ambient 0.15 diffuse 0.85 phong 1}}}
     cone{<0,0,0>,$upperradius,<0,$upperheight,0>,0  translate<$x,$height,$y>
         texture{pigment{color Scarlet}
         finish {ambient 0.15 diffuse 0.85 phong 1}}}
     }
 ";
fwrite($zz,$ot);
}
DDDDDDDDDDDDDDDDDDDDDDDD
$inthemenu = "no";
$dirlist= array("NA");
$lenlist= array("NA");
$txtitem="AAAAAA";
EEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Return current item: PHP Cad and Drawing Program