The text:
//==================== Octagon ===============
intersection{
box {<-1, 0.0,-1>,< 1,1.0,1> rotate<0, 0,0>}
box {<-1,-0.1,-1>,< 1,1.1,1> rotate<0,45,0>}
scale <1,0.5,1>
texture{Polished_Brass
normal{bumps 0.3 scale 0.02}
finish{diffuse 0.9 phong 1}
}
translate<1.1,0.00,0>}
//============================================
//================= Octagon hollow ===========
intersection{
box {<-1, 0.0,-1>,< 1,1.0,1> rotate<0, 0,0>}
box {<-1,-0.1,-1>,< 1,1.1,1> rotate<0,45,0>}
cylinder{<0,-0.1,0>,<0,1.1,0>,0.5 inverse
scale <1,0.5,1>
texture{Polished_Chrome
normal{bumps 0.3 scale 0.2}
finish{diffuse 0.9 phong 1}
}
translate<-1.1,0.50,0.5>}
//---------------------------------------- end |
We'll get the following images:
Scene description for POV-Ray:
"povoct0.txt" or
"povoct0.pov"
Scene description for POV-Ray:
"povoct1.txt" or
"povoct1.pov"
|