#declare CENT = <0,0,0> #declare NUM_RINGS = 8 #declare STRING_RAD = 0.05 #declare STRING_TEN = 1 #declare P0 = <0,1,0> #declare D0 = (P0 - CENT ) / NUM_RINGS #declare P1 = <.5,.5,0> #declare D1 = (P1 - CENT ) / NUM_RINGS #declare P2 = <1,0,0> #declare D2 = (P2 - CENT ) / NUM_RINGS #declare P3 = <.5,-.5,0> #declare D3 = (P3 - CENT ) / NUM_RINGS #declare P4 = <0,-1,0> #declare D4 = (P4 - CENT ) / NUM_RINGS #declare P5 = <-.5,-.5,0> #declare D5 = (P5 - CENT ) / NUM_RINGS #declare P6 = <-1,0,0> #declare D6 = (P6 - CENT ) / NUM_RINGS #declare P7 = <-.5,.5,0> #declare D7 = (P7 - CENT ) / NUM_RINGS // #declare web = union { blob { threshold .65 cylinder { CENT P0 STRING_RAD STRING_TEN } cylinder { CENT P1 STRING_RAD STRING_TEN } cylinder { CENT P2 STRING_RAD STRING_TEN } cylinder { CENT P3 STRING_RAD STRING_TEN } cylinder { CENT P4 STRING_RAD STRING_TEN } cylinder { CENT P5 STRING_RAD STRING_TEN } cylinder { CENT P6 STRING_RAD STRING_TEN } cylinder { CENT P7 STRING_RAD STRING_TEN } } #declare Z = 1 #while ( Z < NUM_RINGS ) #declare V0= #declare V1= #declare V2= #declare V3= #declare V4= #declare V5= #declare V6= #declare V7= blob { threshold 0.65 cylinder { V0 V1 STRING_RAD, STRING_TEN } cylinder { V1 V2 STRING_RAD, STRING_TEN } cylinder { V2 V3 STRING_RAD, STRING_TEN } cylinder { V3 V4 STRING_RAD, STRING_TEN } cylinder { V4 V5 STRING_RAD, STRING_TEN } cylinder { V5 V6 STRING_RAD, STRING_TEN } cylinder { V6 V7 STRING_RAD, STRING_TEN } cylinder { V7 V0 STRING_RAD, STRING_TEN } } #declare Z=Z+1 #end // while pigment { White } finish { Shiny } }