]> OCCT Git - occt-copy.git/commitdiff
0031217: Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when...
authorandrey.kaftasev@opencascade.com <akaftasev>
Mon, 13 Apr 2020 09:36:47 +0000 (12:36 +0300)
committerandrey.kaftasev@opencascade.com <akaftasev>
Mon, 13 Apr 2020 09:36:47 +0000 (12:36 +0300)
Now code protected from crashes when IsParallel

src/GeomFill/GeomFill_SectionPlacement.cxx

index 98e1a2306c4e6257a92799e9ca50184f75714933..644d034f9597d23a747fe8c3772bd5f39230be6f 100644 (file)
@@ -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));