// Datei: Prisma-Kubisch.pov // "Prisma" mit Grundfläche, die von einer kubischen Splinekurve // begrenzt wird. // A. Filler // --------------------------------------------------------------- #version 3.5; #include "colors.inc" global_settings { assumed_gamma 1.2 } background { color rgb <1,1,1> } // ---------------------------------------- camera { location <0.0, 10, -15> angle 20 look_at <0.0, 0.0, 0.0> } light_source { <-30, 30, -30> color rgb <1, 1, 1> } // ---------------------------------------- // "Prisma" mit von einer interpolierenden // kubischen Splinekurve begrenzten Grundfläche prism { cubic_spline 0, 0.3, 17, <-2.5,0> <-2,0> <-1.8,-0.5> <-1,-1> <0,-1> <1,-0.8> <2,-0.5> <2.5,-0.2> <3,0> <2.5,0.2> <2,0.5> <1,0.8> <0,1> <-1,1> <-1.8,0.5> <-2,0> <-2.5,0> pigment {color rgbf <0.14, 0.56, 0.14, 0.7>} } // ---------------------------------------- // Stützpunkte der Splinekurve (dargestellt als kleine Kugeln) sphere {<-2.5,0,0> 0.035} sphere {<-2,0,0> 0.035} sphere {<-1.8,0,-0.5> 0.035} sphere {<-1,0,-1> 0.035} sphere {<0,0,-1> 0.035} sphere {<1,0,-0.8> 0.035} sphere {<2,0,-0.5> 0.035} sphere {<2.5,0,-0.2> 0.035} sphere {<3,0,0> 0.035} sphere {<2.5,0,0.2> 0.035} sphere {<2,0,0.5> 0.035} sphere {<1,0,0.8> 0.035} sphere {<0,0,1> 0.035} sphere {<-1,0,1> 0.035} sphere {<-1.8,0,0.5> 0.035} sphere {<-2,0,0> 0.035} sphere {<-2.5,0,0> 0.035} // Darstellung der Splinekurve als "sphere_sweep" // (Kugelbahn mit sehr kleinen Kugeln) sphere_sweep { cubic_spline 17, <-2.5,0,0> 0.02 <-2,0,0> 0.02 <-1.8,0,-0.5> 0.02 <-1,0,-1> 0.02 <0,0,-1> 0.02 <1,0,-0.8> 0.02 <2,0,-0.5> 0.02 <2.5,0,-0.2> 0.02 <3,0,0> 0.02 <2.5,0,0.2> 0.02 <2,0,0.5> 0.02 <1,0,0.8> 0.02 <0,0,1> 0.02 <-1,0,1> 0.02 <-1.8,0,0.5> 0.02 <-2,0,0> 0.02 <-2.5,0,0> 0.02 tolerance 0.1 no_shadow } sphere_sweep { cubic_spline 17, <-2.5,0.3,0> 0.01 <-2,0.3,0> 0.01 <-1.8,0.3,-0.5> 0.01 <-1,0.3,-1> 0.01 <0,0.3,-1> 0.01 <1,0.3,-0.8> 0.01 <2,0.3,-0.5> 0.01 <2.5,0.3,-0.2> 0.01 <3,0.3,0> 0.01 <2.5,0.3,0.2> 0.01 <2,0.3,0.5> 0.01 <1,0.3,0.8> 0.01 <0,0.3,1> 0.01 <-1,0.3,1> 0.01 <-1.8,0.3,0.5> 0.01 <-2,0.3,0> 0.01 <-2.5,0.3,0> 0.01 tolerance 0.2 pigment {color rgb <0.14, 0.56, 0.14>} no_shadow }