Salome HOME
updated copyright message
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeSolid.cxx
1 // Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 // File:        GEOMAlgo_ShapeSolid.cxx
24 // Created:     Thu Jan 13 12:54:48 2005
25 // Author:      Peter KURNEV
26 //              <pkv@irinox>
27 //
28 #include <GEOMAlgo_ShapeSolid.hxx>
29
30 #include <TopTools_ListIteratorOfListOfShape.hxx>
31 #include <TopTools_ListOfShape.hxx>
32
33 //=======================================================================
34 //function : GEOMAlgo_ShapeSolid
35 //purpose  :
36 //=======================================================================
37 GEOMAlgo_ShapeSolid::GEOMAlgo_ShapeSolid()
38 :
39   GEOMAlgo_Algo(),
40   myRank(0),
41   myDSFiller(NULL)
42 {
43 }
44 //=======================================================================
45 //function : ~
46 //purpose  :
47 //=======================================================================
48 GEOMAlgo_ShapeSolid::~GEOMAlgo_ShapeSolid()
49 {
50 }
51 //=======================================================================
52 //function : SetFiller
53 //purpose  :
54 //=======================================================================
55 void GEOMAlgo_ShapeSolid::SetFiller(const BOPAlgo_PaveFiller& aDSFiller)
56 {
57   myDSFiller=(BOPAlgo_PaveFiller*) &aDSFiller;
58 }
59 //=======================================================================
60 // function: Shapes
61 // purpose:
62 //=======================================================================
63 const TopTools_ListOfShape& GEOMAlgo_ShapeSolid::Shapes(const TopAbs_State aState) const
64 {
65   const TopTools_ListOfShape *pL;
66   //
67   switch (aState) {
68     case TopAbs_IN:
69       pL=&myLSIN;
70       break;
71     case TopAbs_OUT:
72       pL=&myLSOUT;
73       break;
74     case TopAbs_ON:
75       pL=&myLSON;
76       break;
77     default:
78       pL=&myLSON;
79       break;
80   }
81   return *pL;
82 }