From b90a0b34111ec827f236406979705275d283bca0 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 29 Sep 2009 12:34:30 +0000 Subject: [PATCH] new gcc and windows port --- .../Geometric2D/QuadraticPolygon.cxx | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) 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; } -- 2.39.2