From 36b74c3ed22d88658faf390f9a9ee30c6aee67a1 Mon Sep 17 00:00:00 2001 From: geay Date: Tue, 1 Apr 2014 15:38:50 +0200 Subject: [PATCH] Little modif on BBTree computation but big performance impact. --- src/MEDCoupling/MEDCouplingUMesh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2