// modified by Michael KLOKOV Wed Mar 6 15:01:25 2002
// modified by Eugeny MALTCHIKOV Wed Jul 04 11:13:01 2012
-#include <BOPAlgo_BOP.hxx>
+#include <BRepAlgoAPI_Section.hxx>
+
#include <BOPAlgo_PaveFiller.hxx>
-#include <BOPAlgo_Section.hxx>
+
#include <BOPDS_DS.hxx>
-#include <BRep_Tool.hxx>
-#include <BRepAlgoAPI_Section.hxx>
+
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRepBuilderAPI_MakeShell.hxx>
-#include <Geom2d_TrimmedCurve.hxx>
+
#include <Geom_Plane.hxx>
#include <Geom_Surface.hxx>
+
#include <gp_Pln.hxx>
-#include <TopExp.hxx>
-#include <TopoDS.hxx>
+
#include <TopoDS_Face.hxx>
#include <TopoDS_Shape.hxx>
-#include <TopTools_IndexedMapOfShape.hxx>
-#include <TopTools_MapOfShape.hxx>
//
static
void BRepAlgoAPI_Section::Init(const Standard_Boolean bFlag)
{
myOperation=BOPAlgo_SECTION;
- myParametersChanged = Standard_False;
myApprox = Standard_False;
myComputePCurve1 = Standard_False;
myComputePCurve2 = Standard_False;
- myParametersChanged = Standard_True;
//
if (bFlag) {
Build();
{
myArguments.Clear();
myArguments.Append(S1);
- myParametersChanged = Standard_True;
}
//=======================================================================
//function : Init1
{
myTools.Clear();
myTools.Append(S2);
- myParametersChanged = Standard_True;
}
//=======================================================================
//function : Init2
//=======================================================================
void BRepAlgoAPI_Section::Approximation(const Standard_Boolean B)
{
- if(myApprox != B) {
- myApprox = B;
- myParametersChanged = Standard_True;
- }
+ myApprox = B;
}
//=======================================================================
//function : ComputePCurveOn1
//=======================================================================
void BRepAlgoAPI_Section::ComputePCurveOn1(const Standard_Boolean B)
{
- if(myComputePCurve1 != B) {
- myComputePCurve1 = B;
- myParametersChanged = Standard_True;
- }
+ myComputePCurve1 = B;
}
//=======================================================================
//function : ComputePCurveOn2
//=======================================================================
void BRepAlgoAPI_Section::ComputePCurveOn2(const Standard_Boolean B)
{
- if(myComputePCurve2 != B) {
- myComputePCurve2 = B;
- myParametersChanged = Standard_True;
- }
+ myComputePCurve2 = B;
}
//=======================================================================
//function : SetAttributes
//=======================================================================
void BRepAlgoAPI_Section::SetAttributes()
{
- BOPAlgo_SectionAttribute theSecAttr(myApprox,
- myComputePCurve1,
- myComputePCurve2);
+ BOPAlgo_SectionAttribute theSecAttr(myApprox,
+ myComputePCurve1,
+ myComputePCurve2);
myDSFiller->SetSectionAttribute(theSecAttr);
}
//=======================================================================