]> OCCT Git - occt.git/commitdiff
0031217: Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when...
authorakaftasev <akaftasev@opencascade.com>
Tue, 1 Aug 2023 13:00:20 +0000 (14:00 +0100)
committerjokwajeb <jokwajeb@opencascade.com>
Mon, 7 Aug 2023 10:23:54 +0000 (11:23 +0100)
Added protection from crashes when IsParallel

src/GeomFill/GeomFill_SectionPlacement.cxx

index 8d39b1c3cd011fa5d985948318f89882a17d1682..46da47a39f03793f8098ee7a96e205411d9a9c77 100644 (file)
@@ -609,7 +609,7 @@ void GeomFill_SectionPlacement::Perform(const Handle(Adaptor3d_Curve)& 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));