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

0025568: SIGSEGV in thrusections with edge without 3D curve

-Set algorithm flag NotDone if there is a non-degenerated edge with absent 3D curve.
-Check IsDone flag in thrusection command.
-Add test case bugs/modalg_5/bug25568.

Small correction of test case for issue CR25568
This commit is contained in:
msv
2014-12-11 16:42:45 +03:00
committed by bugmaster
parent 70d08ce5b2
commit a4bb1420ca
4 changed files with 63 additions and 13 deletions

View File

@@ -408,10 +408,13 @@ Standard_Integer thrusections(Draw_Interpretor&, Standard_Integer n, const char*
Generator.Build();
TopoDS_Shape Shell = Generator.Shape();
DBRep::Set(a[index-1], Shell);
if (Generator.IsDone()) {
TopoDS_Shape Shell = Generator.Shape();
DBRep::Set(a[index-1], Shell);
}
else {
cout << "Algorithm is not done" << endl;
}
return 0;
}