From: geay Date: Tue, 1 Apr 2014 13:38:50 +0000 (+0200) Subject: Little modif on BBTree computation but big performance impact. X-Git-Tag: V7_4_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36b74c3ed22d88658faf390f9a9ee30c6aee67a1;p=tools%2Fmedcoupling.git Little modif on BBTree computation but big performance impact. --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index be7f6ce87..a14022d1c 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -6471,7 +6471,7 @@ DataArrayDouble *MEDCouplingUMesh::getBoundingBoxForBBTree2DQuadratic(double arc pol=INTERP_KERNEL::QuadraticPolygon::BuildLinearPolygon(nodes); else pol=INTERP_KERNEL::QuadraticPolygon::BuildArcCirclePolygon(nodes); - INTERP_KERNEL::Bounds b; pol->fillBounds(b); delete pol; + INTERP_KERNEL::Bounds b; b.prepareForAggregation(); pol->fillBounds(b); delete pol; bbox[0]=b.getXMin(); bbox[1]=b.getXMax(); bbox[2]=b.getYMin(); bbox[3]=b.getYMax(); } return ret.retn();