]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Little modif on BBTree computation but big performance impact.
authorgeay <anthony.geay@cea.fr>
Tue, 1 Apr 2014 13:38:50 +0000 (15:38 +0200)
committergeay <anthony.geay@cea.fr>
Tue, 1 Apr 2014 13:38:50 +0000 (15:38 +0200)
src/MEDCoupling/MEDCouplingUMesh.cxx

index be7f6ce87cfb1128d7eb44520792c64f21590281..a14022d1c21b78e6cc992f463a52e7742f2373b7 100644 (file)
@@ -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();