diff --git a/wrap/io_edgemesh/export_svg.h b/wrap/io_edgemesh/export_svg.h
index df90b52e..1095e001 100644
--- a/wrap/io_edgemesh/export_svg.h
+++ b/wrap/io_edgemesh/export_svg.h
@@ -45,7 +45,10 @@ public:
// the default is two column and enough row. If numRow is not sufficient it is automatically enlarged.
int numCol;
int numRow;
-
+
+ bool crossHairs; //toggle crossHairs printing
+ float crossHairRad; //crossHair radius in cm
+
Point2f sizeCm; // The size, in the drawing, of each ViewBox (in cm)
Point2f marginCm; // how much space between each slice box (in cm)
@@ -93,8 +96,11 @@ public:
sizeCm=Point2f(10,10);
marginCm=Point2f(1,1);
showTextDetails=true;
- numCol=2;
+ numCol=2;
numRow=10;
+
+ crossHairs=true;
+ crossHairRad=.25f;
}
};
@@ -173,11 +179,67 @@ static void WriteXmlBody(FILE* fpo, EdgeMeshType &mp, SVGProperties &pro, int me
fprintf(fpo, " \n",
pro.sizeCm[0], pro.sizeCm[1], pro.marginCm[0]+colInd*(pro.sizeCm[0]+pro.marginCm[0]), pro.marginCm[1]+rowInd*(pro.sizeCm[1]+pro.marginCm[1]));
+
+ // write crosshairs
+ if (pro.crossHairs){
+ // WriteCrossHairs(fpo);
+ float r=pro.crossHairRad;
+ //ch1
+ fprintf(fpo, " ");
+
+ //ch2
+ fprintf(fpo, " ");
+
+ //ch3
+ fprintf(fpo, " ");
+
+ //ch3
+ fprintf(fpo, " ");
+
+ }
+
fprintf(fpo, " \n", pro.strokeColor.c_str(), pro.strokeLineCap.c_str(),pro.lineWidthPt/100.0f);
+
+
fprintf(fpo, " \n");
}
-
+
+
+
};