1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0032691: Modeling Algorithms - Exception when trying to build solid during sweep algorithm

Changed the condition for checking the correctness of the sweep algorithm. Exception is no longer raised, algorithm finishes with "Not done" status.
This commit is contained in:
akaftasev
2022-10-18 09:39:03 +03:00
committed by smoskvin
parent 3c9178dd5c
commit 25b5e83a4c
2 changed files with 20 additions and 1 deletions

View File

@@ -3002,7 +3002,7 @@ void BRepFill_Sweep::Build(TopTools_MapOfShape& ReversedEdges,
}
}
if (aNbFaces == 0)
if ((NbTrous > 0) ? (aNbFaces < NbLaw) : (aNbFaces == 0))
{
isDone = Standard_False;
return;