#macro Axes(Lgueur) // Lgueur : axes length in POV unit : Lgueur length in each direction union { #declare Compteur=1; // One sphere (1/4 POV Unit RADIUS) every 1 POV Unit #while (Compteur,.25 pigment {color rgb <.6,.6,.6>}}} object{sphere {<0,-Compteur,0>,.25 pigment {color rgb <.6,.6,.6>}}} object{sphere {<0,0,-Compteur>,.25 pigment {color rgb <.6,.6,.6>}}} object{sphere {,.25 pigment {color rgb <1,1,1>}}} object{sphere {<0,Compteur,0>,.25 pigment {color rgb <1,1,1>}}} object{sphere {<0,0,Compteur>,.25 pigment {color rgb <1,1,1>}}} #declare Compteur=Compteur+1; #end // The 3 axes : Red=x Green=y Blue=z : dark in - direction cylinder { <-Lgueur,0,0>,<0,0,0>,.1 pigment {color rgb <.6,0,0> } } cylinder { <0,-Lgueur,0>,<0,0,0>,.1 pigment {color rgb <0,.6,0> } } cylinder { <0,0,-Lgueur>,<0,0,0>,.1 pigment {color rgb <0,0,.6> } } cylinder { <0,0,0>,,.1 pigment {color rgb <1,0,0> } } cylinder { <0,0,0>,<0,Lgueur,0>,.1 pigment {color rgb <0,1,0> } } cylinder { <0,0,0>,<0,0,Lgueur>,.1 pigment {color rgb <0,0,1> } } } #end // Error if file end with #end