From: mpv Date: Thu, 11 Jan 2018 11:59:30 +0000 (+0300) Subject: FIx for the issue #2399 : optimization of the Intersection feature results (better... X-Git-Tag: V_3.0.0RC1~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0c54e2dea1ee3052eda2e551bfb9108f97183f90;p=modules%2Fshaper.git FIx for the issue #2399 : optimization of the Intersection feature results (better BSpline approximation, not by polygons). --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Intersection.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Intersection.cpp index b458cddf5..8cf31feba 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Intersection.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Intersection.cpp @@ -70,7 +70,10 @@ void GeomAlgoAPI_Intersection::build(const ListOfShape& theObjects, } } anOperation->SetTools(aTools); - + // optimization for the issue #2399 + anOperation->Approximation(Standard_True); + anOperation->ComputePCurveOn1(Standard_True); + anOperation->ComputePCurveOn2(Standard_True); // Building and getting result. anOperation->Build(); if(!anOperation->IsDone()) {