0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[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//
d5f74e42 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
973c2be1 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
b94d4858 41//=======================================================================
42//function : Add
43//purpose :
44//=======================================================================
45 inline Standard_Boolean BRepFeat_SplitShape::Add(const TopTools_SequenceOfShape& theEdges)
46 {
47 return myWOnShape->Add(theEdges);
48 }
7fd59977 49
50//=======================================================================
51//function : Init
52//purpose :
53//=======================================================================
54
55inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S)
56{
57 mySShape.Init(S);
58 if (myWOnShape.IsNull()) {
59 myWOnShape = new LocOpe_WiresOnShape(S);
60 }
61 else {
62 myWOnShape->Init(S);
63 }
64}
65
7c104885 66//=======================================================================
67//function : SetCheckInterior
68//purpose :
69//=======================================================================
70
71inline void BRepFeat_SplitShape::SetCheckInterior(const Standard_Boolean ToCheckInterior)
72{
73 myWOnShape->SetCheckInterior(ToCheckInterior);
74}
7fd59977 75
76//=======================================================================
77//function : Add
78//purpose :
79//=======================================================================
80
81inline void BRepFeat_SplitShape::Add(const TopoDS_Wire& W,
82 const TopoDS_Face& F)
83{
84 myWOnShape->Bind(W,F);
85}
86
87
88//=======================================================================
89//function : Add
90//purpose :
91//=======================================================================
92
93inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
94 const TopoDS_Face& F)
95{
96 myWOnShape->Bind(E,F);
97}
98
ed60a55e 99//=======================================================================
100//function : Add
101//purpose :
102//=======================================================================
103
104inline void BRepFeat_SplitShape::Add(const TopoDS_Compound& Comp,
105 const TopoDS_Face& F)
106{
107 myWOnShape->Bind(Comp,F);
108}
109
7fd59977 110
111//=======================================================================
112//function : Add
113//purpose :
114//=======================================================================
115
116inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
117 const TopoDS_Edge& EOn)
118{
119 myWOnShape->Bind(E,EOn);
120}
121
122