From eca7b5ea4afc8414e59e1b316468215b1c30f323 Mon Sep 17 00:00:00 2001 From: "andrey.kaftasev@opencascade.com" Date: Mon, 13 Apr 2020 12:36:47 +0300 Subject: [PATCH] 0031217: Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when parallel path and SectionAxis Now code protected from crashes when IsParallel --- src/GeomFill/GeomFill_SectionPlacement.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GeomFill/GeomFill_SectionPlacement.cxx b/src/GeomFill/GeomFill_SectionPlacement.cxx index 98e1a2306c..644d034f95 100644 --- a/src/GeomFill/GeomFill_SectionPlacement.cxx +++ b/src/GeomFill/GeomFill_SectionPlacement.cxx @@ -643,7 +643,7 @@ void GeomFill_SectionPlacement::Perform(const Handle(Adaptor3d_HCurve)& Path, myAdpSection.LastParameter(), Path->Resolution(Tol/100), myAdpSection.Resolution(Tol/100)); - if (Ext.IsDone()) { + if (Ext.IsDone() && !Ext.IsParallel()) { Extrema_POnCurv P1, P2; for (ii=1; ii<=Ext.NbExt(); ii++) { distaux = sqrt (Ext.SquareDistance(ii)); -- 2.39.5