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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user