+
+ if(mirror) {
+
+ nx=$2-mx1; ny=$3-mx2; nz=$4-mx3;
+ if((nx>=x0)&&(ny>=y0)&&(nz>=z0)&&\
+ (nx<=x1)&&(ny<=y1)&&(nz<=z1)) {
+print "// translation: "$2/5.480" "$3/5.480" "$4/5.480" -> "nx/5.480" "ny/5.480" "nz/5.480" ...";
+ print "sphere { <"nx","nz","ny">, "radius" ";
+ if(extra)
+ print "texture { pigment { color rgb<"$6/4.4",0,"1-$6/4.4"> } ";
+ else
+ print "texture { pigment { color "$5" } ";
+ print "finish { phong 1 metallic } } }";
+ }
+ nx=$2-my1; ny=$3-my2; nz=$4-my3;
+ if((nx>=x0)&&(ny>=y0)&&(nz>=z0)&&\
+ (nx<=x1)&&(ny<=y1)&&(nz<=z1)) {
+ print "sphere { <"nx","nz","ny">, "radius" ";
+ if(extra)
+ print "texture { pigment { color rgb<"$6/4.4",0,"1-$6/4.4"> } ";
+ else
+ print "texture { pigment { color "$5" } ";
+ print "finish { phong 1 metallic } } }";
+ }
+ nx=$2-mz1; ny=$3-mz2; nz=$4-mz3;
+ if((nx>=x0)&&(ny>=y0)&&(nz>=z0)&&\
+ (nx<=x1)&&(ny<=y1)&&(nz<=z1)) {
+ print "sphere { <"nx","nz","ny">, "radius" ";
+ if(extra)
+ print "texture { pigment { color rgb<"$6/4.4",0,"1-$6/4.4"> } ";
+ else
+ print "texture { pigment { color "$5" } ";
+ print "finish { phong 1 metallic } } }";
+ }
+
+ }
+