1 // Created on: 1995-09-04
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #include <LocOpe_WiresOnShape.hxx>
20 //=======================================================================
21 //function : BRepFeat_SplitShape
23 //=======================================================================
25 inline BRepFeat_SplitShape::BRepFeat_SplitShape () {}
30 //=======================================================================
31 //function : BRepFeat_SplitShape
33 //=======================================================================
35 inline BRepFeat_SplitShape::BRepFeat_SplitShape (const TopoDS_Shape& S) :
38 myWOnShape = new LocOpe_WiresOnShape(S);
41 //=======================================================================
44 //=======================================================================
45 inline Standard_Boolean BRepFeat_SplitShape::Add(const TopTools_SequenceOfShape& theEdges)
47 return myWOnShape->Add(theEdges);
50 //=======================================================================
53 //=======================================================================
55 inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S)
58 if (myWOnShape.IsNull()) {
59 myWOnShape = new LocOpe_WiresOnShape(S);
66 //=======================================================================
67 //function : SetCheckInterior
69 //=======================================================================
71 inline void BRepFeat_SplitShape::SetCheckInterior(const Standard_Boolean ToCheckInterior)
73 myWOnShape->SetCheckInterior(ToCheckInterior);
76 //=======================================================================
79 //=======================================================================
81 inline void BRepFeat_SplitShape::Add(const TopoDS_Wire& W,
84 myWOnShape->Bind(W,F);
88 //=======================================================================
91 //=======================================================================
93 inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
96 myWOnShape->Bind(E,F);
99 //=======================================================================
102 //=======================================================================
104 inline void BRepFeat_SplitShape::Add(const TopoDS_Compound& Comp,
105 const TopoDS_Face& F)
107 myWOnShape->Bind(Comp,F);
111 //=======================================================================
114 //=======================================================================
116 inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
117 const TopoDS_Edge& EOn)
119 myWOnShape->Bind(E,EOn);