From 2e5ce06f12d66dba9833d5d598560ad7454f82d7 Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 31 Jan 2012 09:22:25 +0000 Subject: [PATCH] Improvement of xfig output --- src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DBounds.cxx | 2 +- src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeLin.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2