From: adam Date: Tue, 29 Sep 2009 12:34:30 +0000 (+0000) Subject: new gcc and windows port X-Git-Tag: V5_1_main_FINAL~334 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b90a0b34111ec827f236406979705275d283bca0;p=tools%2Fmedcoupling.git new gcc and windows port --- diff --git a/src/INTERP_KERNEL/Geometric2D/QuadraticPolygon.cxx b/src/INTERP_KERNEL/Geometric2D/QuadraticPolygon.cxx index 817c68477..2dc7614af 100644 --- a/src/INTERP_KERNEL/Geometric2D/QuadraticPolygon.cxx +++ b/src/INTERP_KERNEL/Geometric2D/QuadraticPolygon.cxx @@ -27,6 +27,7 @@ #include #include #include +#include using namespace std; using namespace INTERP_KERNEL; @@ -208,19 +209,19 @@ double QuadraticPolygon::intersectWith(const QuadraticPolygon& other, double* ba barycenter[0] = barycenter[1] = 0.; vector polygs=intersectMySelfWith(other); for(vector::iterator iter=polygs.begin();iter!=polygs.end();iter++) - { - double area = fabs((*iter)->getArea()); - (*iter)->getBarycenter(bary); - delete *iter; - ret+=area; - barycenter[0] += bary[0]*area; - barycenter[1] += bary[1]*area; - } + { + double area = fabs((*iter)->getArea()); + (*iter)->getBarycenter(bary); + delete *iter; + ret+=area; + barycenter[0] += bary[0]*area; + barycenter[1] += bary[1]*area; + } if ( ret > std::numeric_limits::min() ) - { - barycenter[0] /= ret; - barycenter[1] /= ret; - } + { + barycenter[0] /= ret; + barycenter[1] /= ret; + } return ret; }