mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026026: XtControl_Reader hangs when processing specific data
Small fix for a specific case (was missing).
This commit is contained in:
@@ -203,6 +203,8 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
|
||||
thePipe.GenerateParticularCase(Standard_True);
|
||||
thePipe.Init(theLinePipe,i2s.Line(1));
|
||||
thePipe.Perform(Standard_True);
|
||||
if (!thePipe.IsDone())
|
||||
Standard_ConstructionError::Raise ("GeomFill_Pipe : Cannot make a surface");
|
||||
|
||||
Handle(Geom_Surface) Spl = thePipe.Surface();
|
||||
AS.Load(Spl);
|
||||
@@ -415,6 +417,8 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
|
||||
thePipe.GenerateParticularCase(Standard_True);
|
||||
thePipe.Init(theLinePipe,C);
|
||||
thePipe.Perform(Standard_True);
|
||||
if (!thePipe.IsDone())
|
||||
Standard_ConstructionError::Raise ("GeomFill_Pipe : Cannot make a surface");
|
||||
|
||||
Handle(Geom_Surface) thePS = thePipe.Surface();
|
||||
if (thePS->DynamicType() == STANDARD_TYPE(Geom_RectangularTrimmedSurface)) {
|
||||
|
Reference in New Issue
Block a user