From: ageay Date: Thu, 25 Oct 2012 15:45:50 +0000 (+0000) Subject: For the moment : no acceleration X-Git-Tag: V6_6_0b1~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d0c9fce7f3d7e39e94f538ce8d68b89c8bae9af3;p=tools%2Fmedcoupling.git For the moment : no acceleration --- diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx index 1912c6b5b..1710042fb 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx @@ -564,7 +564,7 @@ void QuadraticPolygon::buildPartitionsAbs(QuadraticPolygon& other, std::set res=buildIntersectionPolygons(other,*this); for(std::vector::iterator it=res.begin();it!=res.end();it++) { @@ -863,6 +863,16 @@ void QuadraticPolygon::performLocatingOperation(QuadraticPolygon& pol2) const } } +void QuadraticPolygon::performLocatingOperationSlow(QuadraticPolygon& pol2) const +{ + IteratorOnComposedEdge it(&pol2); + for(it.first();!it.finished();it.next()) + { + ElementaryEdge *cur=it.current(); + cur->locateFullyMySelfAbsolute(*this); + } +} + /*! * Given 2 polygons 'pol1' and 'pol2' (localized) the resulting polygons are returned. * diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.hxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.hxx index 586852363..a5729899f 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.hxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.hxx @@ -79,6 +79,7 @@ namespace INTERP_KERNEL void intersectForPoint(const QuadraticPolygon& other, std::vector< int >& numberOfCreatedPointsPerEdge) const; public://Only public for tests reasons void performLocatingOperation(QuadraticPolygon& pol2) const; + void performLocatingOperationSlow(QuadraticPolygon& pol2) const; static void SplitPolygonsEachOther(QuadraticPolygon& pol1, QuadraticPolygon& pol2, int& nbOfSplits); std::vector buildIntersectionPolygons(const QuadraticPolygon& pol1, const QuadraticPolygon& pol2) const; bool amIAChanceToBeCompletedBy(const QuadraticPolygon& pol1Splitted, const QuadraticPolygon& pol2NotSplitted, bool& direction);