]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Improvement of xfig output
authorageay <ageay>
Tue, 31 Jan 2012 09:22:25 +0000 (09:22 +0000)
committerageay <ageay>
Tue, 31 Jan 2012 09:22:25 +0000 (09:22 +0000)
src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DBounds.cxx
src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx

index fbe4a046816a3f0c4cf62486348ab42fde30651a..5b90a06803f45a8ba0b570cdd7bca02eb85c3d97 100644 (file)
@@ -129,7 +129,7 @@ double Bounds::fitXForXFigD(double val, int res) const
 double Bounds::fitYForXFigD(double val, int res) const
 {
   double delta=std::max(_x_max-_x_min,_y_max-_y_min)/2.;
-  double ret=val-(_y_max+_y_min)/2.+delta;
+  double ret=(_y_max+_y_min)/2.-val+delta;
   delta=11.1375*res/(2.*delta);
   return ret*delta;
 }
index 0b883b3b85cf9fefcb9a01d51cc79396c1fc927b..6156ce92f6828d1f2cb9f35f2642954cab860bf5 100644 (file)
@@ -210,7 +210,7 @@ void EdgeLin::dumpInXfigFile(std::ostream& stream, bool direction, int resolutio
 {
   stream << "2 1 0 1 ";
   fillXfigStreamForLoc(stream);
-  stream << " 7 50 -1 -1 0.000 0 0 -1 0 0 2" << std::endl;
+  stream << " 7 50 -1 -1 0.000 0 0 -1 1 0 2" << std::endl << "1 1 1.00 60.00 120.00" << std::endl;
   direction?_start->dumpInXfigFile(stream,resolution,box):_end->dumpInXfigFile(stream,resolution,box);
   direction?_end->dumpInXfigFile(stream,resolution,box):_start->dumpInXfigFile(stream,resolution,box);
   stream << std::endl;