#declare n=-5; #declare m=5; camera {location look_at <0,0,0>} // // ******* L I G H T S ******* // light_source { // Light5 color rgb <1.000, 1.000, 1.000> } light_source { // Light001 <0.000, 0.000, 0.000> color rgb <1.000, 1.000, 1.000> } light_source { // Light1 <-9.364, -4.060, -0.764> color rgb <1.000, 1.000, 1.000> } light_source { // Light2 <1.088, 3.686, 5.812> color rgb <1.000, 1.000, 1.000> } light_source { // Light3 <11.425, 0.687, 7.702> color rgb <1.000, 1.000, 1.000> } light_source { // Light4 <0.360, -6.701, 4.098> color rgb <1.000, 1.000, 1.000> } light_source { // Light5 <0,0,0> color rgb <1.000, 1.000, 1.000> } // // ******** Macro Dodecaoid ******* // #macro Dodecaoid (Thing) #local c72 = cos(2*pi / 5) ; #local c144 = cos(4*pi / 5) ; #local AngleFace = 63.4349267547195326837439023243767; #local ShiftLeft = c144 *( cos(AngleFace * pi /180) + 1); #local ShiftDown = c144 * sin(AngleFace * pi /180); #local MainShift = (c72 - 2* c144 + 1) * cos(AngleFace * pi /180); #local CopyThing = object { Thing rotate <0.0, 180.0, AngleFace> translate } #local UpperPart = union { object { Thing } object {CopyThing} object {CopyThing rotate <0,72 ,0>} object {CopyThing rotate <0,144,0>} object {CopyThing rotate <0,216,0>} object {CopyThing rotate <0,288,0>} } union { object { UpperPart } object { UpperPart rotate <180, 36, 0> translate -2 * MainShift * y } translate MainShift*y } #end // // ******** OBJECTS ******* // #declare s0 = 0; #declare s72 = sin(2*pi / 5) ; #declare s144 = sin(4*pi / 5) ; #declare s216 = sin(6*pi / 5) ; #declare s288 = sin(8*pi / 5) ; #declare c0 = 1; #declare c72 = cos(2*pi / 5) ; #declare c144 = cos(4*pi / 5) ; #declare c216 = cos(6*pi / 5) ; #declare c288 = cos(8*pi / 5) ; #declare Pentagone = union { cylinder { < c0 , 0.000000, s0 >, < c72 , 0.000000, s72 >, 0.030000 } cylinder { < c72 , 0.000000, s72 >, < c144, 0.000000, s144 >, 0.030000 } cylinder { < c144, 0.000000, s144 >, < c216, 0.000000, s216 >, 0.030000 } cylinder { < c216, 0.000000, s216 >, < c288, 0.000000, s288 >, 0.030000 } cylinder { < c288, 0.000000, s288 >, < c0 , 0.000000, s0 >, 0.030000 } pigment {color rgb <1,0,0>} } Dodecaoid(Pentagone)