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:
@@ -1114,6 +1114,8 @@ void BRepOffset_Offset::Init(const TopoDS_Edge& Path,
|
||||
// Calcul du tuyau
|
||||
GeomFill_Pipe Pipe(HCP, HEdge1, HEdge2, Abs(Offset));
|
||||
Pipe.Perform(Tol, Polynomial, Conti);
|
||||
if (!Pipe.IsDone())
|
||||
Standard_ConstructionError::Raise ("GeomFill_Pipe : Cannot make a surface");
|
||||
Standard_Real ErrorPipe = Pipe.ErrorOnSurf();
|
||||
|
||||
Handle(Geom_Surface) S = Pipe.Surface();
|
||||
@@ -1581,6 +1583,8 @@ void BRepOffset_Offset::Init(const TopoDS_Edge& Edge,
|
||||
|
||||
GeomFill_Pipe Pipe(CP,myOffset);
|
||||
Pipe.Perform();
|
||||
if (!Pipe.IsDone())
|
||||
Standard_ConstructionError::Raise ("GeomFill_Pipe : Cannot make a surface");
|
||||
|
||||
BRepLib_MakeFace MF(Pipe.Surface(), Precision::Confusion());
|
||||
myFace = MF.Face();
|
||||
|
Reference in New Issue
Block a user