From 0c54e2dea1ee3052eda2e551bfb9108f97183f90 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 11 Jan 2018 14:59:30 +0300 Subject: [PATCH] FIx for the issue #2399 : optimization of the Intersection feature results (better BSpline approximation, not by polygons). --- src/GeomAlgoAPI/GeomAlgoAPI_Intersection.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()) { -- 2.39.2