0024428: Implementation of LGPL license
[occt.git] / src / BRepFeat / BRepFeat_SplitShape.lxx
CommitLineData
b311480e 1// Created on: 1995-09-04
2// Created by: Jacques GOUSSARD
3// Copyright (c) 1995-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
973c2be1 8// This library is free software; you can redistribute it and / or modify it
9// under the terms of the GNU Lesser General Public 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
17#include <LocOpe_WiresOnShape.hxx>
18
19
20//=======================================================================
21//function : BRepFeat_SplitShape
22//purpose :
23//=======================================================================
24
25inline BRepFeat_SplitShape::BRepFeat_SplitShape () {}
26
27
28
29
30//=======================================================================
31//function : BRepFeat_SplitShape
32//purpose :
33//=======================================================================
34
35inline BRepFeat_SplitShape::BRepFeat_SplitShape (const TopoDS_Shape& S) :
36 mySShape(S)
37{
38 myWOnShape = new LocOpe_WiresOnShape(S);
39}
40
41
42//=======================================================================
43//function : Init
44//purpose :
45//=======================================================================
46
47inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S)
48{
49 mySShape.Init(S);
50 if (myWOnShape.IsNull()) {
51 myWOnShape = new LocOpe_WiresOnShape(S);
52 }
53 else {
54 myWOnShape->Init(S);
55 }
56}
57
7c104885 58//=======================================================================
59//function : SetCheckInterior
60//purpose :
61//=======================================================================
62
63inline void BRepFeat_SplitShape::SetCheckInterior(const Standard_Boolean ToCheckInterior)
64{
65 myWOnShape->SetCheckInterior(ToCheckInterior);
66}
7fd59977 67
68//=======================================================================
69//function : Add
70//purpose :
71//=======================================================================
72
73inline void BRepFeat_SplitShape::Add(const TopoDS_Wire& W,
74 const TopoDS_Face& F)
75{
76 myWOnShape->Bind(W,F);
77}
78
79
80//=======================================================================
81//function : Add
82//purpose :
83//=======================================================================
84
85inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
86 const TopoDS_Face& F)
87{
88 myWOnShape->Bind(E,F);
89}
90
ed60a55e 91//=======================================================================
92//function : Add
93//purpose :
94//=======================================================================
95
96inline void BRepFeat_SplitShape::Add(const TopoDS_Compound& Comp,
97 const TopoDS_Face& F)
98{
99 myWOnShape->Bind(Comp,F);
100}
101
7fd59977 102
103//=======================================================================
104//function : Add
105//purpose :
106//=======================================================================
107
108inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
109 const TopoDS_Edge& EOn)
110{
111 myWOnShape->Bind(E,EOn);
112}
113
114