// Darstellung eines Prismas in POV-Ray // A. Filler // --------------------------------------------------------------- #include "colors.inc" background{color White } // Kamera und Lichtquelle camera { angle 25 location <10, 18, -30> look_at <0, 1, 0> } light_source { <20, 20, -20> color White } // Prisma prism { // linear_sweep // linear_spline 0, // Höhe der Grundfläche 3, // Höhe der Deckfläche 6, // Zahl der Eckpunkte plus 1 <3,5>, <-3,5>, <-5,0>, <-3,-5>, <3, -5>, <5,0> pigment { color rgb<0.8,0.8,0.8> } } // Koordinatensystem #declare Font1="cyrvetic.ttf"; union{ // X-Achse cylinder{-x*5.5,x*5.5,.05} cone{ x*6.5,0, x*5.5,.15} #declare Count=-5; #while (Count < 6) sphere {, .11} #declare Count=Count+1; #end // y-Achse cylinder{-y*5.5,y*5.5,.07} cone{ y*6.5,0, y*5.5,.15} #declare Count=-5; #while (Count < 6) sphere {<0,Count,0>, .11} #declare Count=Count+1; #end // z-Achse cylinder{-z*5.5,z*5.5,.07} cone{ z*6.5,0, z*5.5,.15} #declare Count=-5; #while (Count < 6) sphere {<0,0,Count>, .11} #declare Count=Count+1; #end // Achsenbeschriftungen text{ttf Font1 "x",0.1,0 scale <1.5,1.5,1.5> translate <5.9,-1.2,0>} text{ttf Font1 "y",0.1,0 scale <1.5,1.5,1.5> translate <-1,5.7,0>} text{ttf Font1 "z",0.1,0 scale <1.5,1.5,1.5> translate <-1,-0.2,5.8>} texture { pigment { rgb<0.1,0.1,0.5> } finish { ambient 0.1 diffuse 0.4 reflection 0.2 brilliance 1 specular 0.3 roughness 0.2 } } no_shadow }