-// File: BRepOffsetAPI_MakePipeShell.cxx
-// Created: Wed Apr 8 19:11:16 1998
-// Author: Philippe MANGIN
-// <pmn@sgi29>
+// Created on: 1998-04-08
+// Created by: Philippe MANGIN
+// Copyright (c) 1998-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
-#include <BRepOffsetAPI_MakePipeShell.ixx>
-
+#include <BRepFill_PipeShell.hxx>
+#include <BRepOffsetAPI_MakePipeShell.hxx>
#include <GeomFill_PipeError.hxx>
+#include <gp_Ax2.hxx>
+#include <gp_Dir.hxx>
+#include <Law_Function.hxx>
+#include <Standard_DomainError.hxx>
#include <Standard_NotImplemented.hxx>
#include <StdFail_NotDone.hxx>
+#include <TopoDS_Shape.hxx>
+#include <TopoDS_Vertex.hxx>
+#include <TopoDS_Wire.hxx>
//=======================================================================
//function :
myPipe->Set(IsFrenet);
}
+//=======================================================================
+//function : SetDiscreteMode
+//purpose :
+//=======================================================================
+ void BRepOffsetAPI_MakePipeShell::SetDiscreteMode()
+{
+ myPipe->SetDiscrete();
+}
+
//=======================================================================
//function : SetMode
//purpose :
//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);
}
void BRepOffsetAPI_MakePipeShell::Delete( const TopoDS_Shape& Profile)
{
- myPipe->Delete(Profile);
+ myPipe->DeleteProfile(Profile);
}
}
return Status;
}
+
//=======================================================================
-//function : SetTransitionMode
+//function : SetTolerance
//purpose :
//=======================================================================
void BRepOffsetAPI_MakePipeShell::SetTolerance(const Standard_Real Tol3d,
myPipe->SetTolerance(Tol3d, BoundTol, TolAngular);
}
+//=======================================================================
+//function : SetMaxDegree
+//purpose :
+//=======================================================================
+void BRepOffsetAPI_MakePipeShell::SetMaxDegree(const Standard_Integer NewMaxDegree)
+{
+ myPipe->SetMaxDegree(NewMaxDegree);
+}
+
+//=======================================================================
+//function : SetMaxSegments
+//purpose :
+//=======================================================================
+void BRepOffsetAPI_MakePipeShell::SetMaxSegments(const Standard_Integer NewMaxSegments)
+{
+ myPipe->SetMaxSegments(NewMaxSegments);
+}
+
+//=======================================================================
+//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 :
return myGenerated;
}
+//=======================================================================
+//function : ErrorOnSurface
+//purpose :
+//=======================================================================
+
+Standard_Real BRepOffsetAPI_MakePipeShell::ErrorOnSurface() const
+{
+ return myPipe->ErrorOnSurface();
+}