0024949: Segmentation Violation during pipe creation
[occt.git] / src / BRepFill / BRepFill_PipeShell.cxx
index 48880fb..e08bb5a 100644 (file)
@@ -773,6 +773,7 @@ void BRepFill_PipeShell::SetForceApproxC1(const Standard_Boolean ForceApproxC1)
 
   if (Ok) {
     myShape = MkSw.Shape();
+    myErrorOnSurf = MkSw.ErrorOnSurface();
 
     TopoDS_Shape aBottomWire = myFirst;
     TopoDS_Shape aTopWire    = myLast;
@@ -879,6 +880,16 @@ const TopoDS_Shape& BRepFill_PipeShell::Shape() const
   return myShape;
 }
 
+//=======================================================================
+//function : ErrorOnSurface
+//purpose  : 
+//=======================================================================
+
+Standard_Real BRepFill_PipeShell::ErrorOnSurface() const 
+{
+  return myErrorOnSurf;
+}
+
 //=======================================================================
 //function : FirstShape
 //purpose  : Return the start section