//=======================Wuerfel aus Rohren ========
#declare R = 0.20; //Radius der Rohre
#declare BigCube1 = union{ //Wuerfel aus Rohren ----
sphere{<-1,-1,-1>,R} sphere{< 1,-1,-1>,R}// 8 Ecken
sphere{<-1,-1, 1>,R} sphere{< 1,-1, 1>,R}
sphere{<-1, 1,-1>,R} sphere{< 1, 1,-1>,R}
sphere{<-1, 1, 1>,R} sphere{< 1, 1, 1>,R}
cylinder {<-1,-1,-1>,< 1,-1,-1>,R}// 4 in x-Richtung
cylinder {<-1,-1, 1>,< 1,-1, 1>,R}
cylinder {<-1, 1,-1>,< 1, 1,-1>,R}
cylinder {<-1, 1, 1>,< 1, 1, 1>,R}
cylinder {<-1,-1,-1>,<-1, 1,-1>,R}// 4 in y-Richtung
cylinder {<-1,-1, 1>,<-1, 1, 1>,R}
cylinder {< 1,-1,-1>,< 1, 1,-1>,R}
cylinder {< 1,-1, 1>,< 1, 1, 1>,R}
cylinder {<-1,-1,-1>,<-1,-1, 1>,R}// 4 in z-Richtung
cylinder {<-1, 1,-1>,<-1, 1, 1>,R}
cylinder {< 1,-1,-1>,< 1,-1, 1>,R}
cylinder {< 1, 1,-1>,< 1, 1, 1>,R}
texture{pigment{color rgb<1,0.8,0>}
finish{ambient 0.45 diffuse 0.55 phong 1}}
}//------Ende der WuerfelRahmen-Definition ---------
//------------- Zeichnen ---------------------------
object{BigCube1 scale 0.7
rotate<0,60,0> translate<0,1.2,0>}
//------------------------------------------- end -- |
Dies ergibt folgendes Bild:
|