0024305: New option in BRepOffsetAPI_MakePipeShell algorithm: the swept shell with...
[occt.git] / src / BRepOffsetAPI / BRepOffsetAPI_MakePipeShell.cxx
index f1189fa..3c7edeb 100755 (executable)
@@ -49,6 +49,15 @@ BRepOffsetAPI_MakePipeShell::BRepOffsetAPI_MakePipeShell(const TopoDS_Wire& Spin
   myPipe->Set(IsFrenet);
 }
 
+//=======================================================================
+//function : SetDiscreteMode
+//purpose  : 
+//=======================================================================
+ void BRepOffsetAPI_MakePipeShell::SetDiscreteMode() 
+{
+  myPipe->SetDiscrete();
+}
+
 //=======================================================================
 //function : SetMode
 //purpose  : 
@@ -81,8 +90,8 @@ BRepOffsetAPI_MakePipeShell::BRepOffsetAPI_MakePipeShell(const TopoDS_Wire& Spin
 //purpose  : 
 //=======================================================================
  void BRepOffsetAPI_MakePipeShell::SetMode(const TopoDS_Wire& AuxiliarySpine,
-                               const Standard_Boolean CurvilinearEquivalence,
-                               const Standard_Boolean KeepContact) 
+                                           const Standard_Boolean CurvilinearEquivalence,
+                                           const BRepFill_TypeOfContact KeepContact) 
 {
    myPipe->Set(AuxiliarySpine, CurvilinearEquivalence, KeepContact);
 }
@@ -185,8 +194,9 @@ void BRepOffsetAPI_MakePipeShell::Delete( const TopoDS_Shape& Profile)
   }
   return Status;
 }
+
 //=======================================================================
-//function : SetTransitionMode
+//function : SetTolerance
 //purpose  : 
 //=======================================================================
  void BRepOffsetAPI_MakePipeShell::SetTolerance(const Standard_Real Tol3d,
@@ -196,6 +206,17 @@ void BRepOffsetAPI_MakePipeShell::Delete( const TopoDS_Shape& Profile)
  myPipe->SetTolerance(Tol3d, BoundTol, TolAngular);
 }
 
+//=======================================================================
+//function : SetForceApproxC1
+//purpose  : Set the flag that indicates attempt to approximate
+//           a C1-continuous surface if a swept surface proved
+//           to be C0.
+//=======================================================================
+ void BRepOffsetAPI_MakePipeShell::SetForceApproxC1(const Standard_Boolean ForceApproxC1)
+{
+  myPipe->SetForceApproxC1(ForceApproxC1);
+}
+
 //=======================================================================
 //function : SetTransitionMode
 //purpose  :