From: ageay Date: Tue, 31 Jan 2012 09:22:25 +0000 (+0000) Subject: Improvement of xfig output X-Git-Tag: V6_main_FINAL~893 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e5ce06f12d66dba9833d5d598560ad7454f82d7;p=tools%2Fmedcoupling.git Improvement of xfig output --- diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DBounds.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DBounds.cxx index fbe4a0468..5b90a0680 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DBounds.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DBounds.cxx @@ -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; } diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx index 0b883b3b8..6156ce92f 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx @@ -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;