#declare LP=array[5]{ <0.5,-0.5>,<0.5,0.5>,<0.3,0.5>,<0.3,-0.5>,<0.5,-0.5> } #declare Prism_CounterClockwise = prism { linear_spline linear_sweep 0,1,5, #for(i,0,4,1) LP[i] #end texture { pigment { Red } } interior_texture { pigment { Blue } } } object {Prism_CounterClockwise //scale 5 //clipped_by { plane { 3*x+z,0.5 } } } #include "colors.inc" #for(i,0,3,1) cone { 3*, 0.1, 3*, 0 texture { pigment { color CHSV2RGB( <(360*i/8), 1, 1> ) } } } cone { -3*, 0.1, -3*, 0 texture { pigment { color CHSV2RGB( <(360*i/8), 1, 1> ) } } } #end