1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File: GEOMAlgo_BuilderArea.cxx
24 // Author: Peter KURNEV
26 #include <GEOMAlgo_BuilderArea.ixx>
28 #include <TopTools_ListIteratorOfListOfShape.hxx>
29 #include <TopoDS_Shape.hxx>
31 //=======================================================================
34 //=======================================================================
35 GEOMAlgo_BuilderArea::GEOMAlgo_BuilderArea()
41 //=======================================================================
44 //=======================================================================
45 GEOMAlgo_BuilderArea::~GEOMAlgo_BuilderArea()
48 //=======================================================================
49 //function : SetContext
51 //=======================================================================
52 void GEOMAlgo_BuilderArea::SetContext(const IntTools_Context& theContext)
54 myContext=(IntTools_Context*)&theContext;
56 //=======================================================================
57 //function : SetShapes
59 //=======================================================================
60 void GEOMAlgo_BuilderArea::SetShapes(const TopTools_ListOfShape& theLF)
62 TopTools_ListIteratorOfListOfShape aIt;
65 aIt.Initialize(theLF);
66 for(; aIt.More(); aIt.Next()) {
67 const TopoDS_Shape& aF=aIt.Value();
71 //=======================================================================
74 //=======================================================================
75 const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Shapes()const
79 //=======================================================================
82 //=======================================================================
83 const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Loops()const
87 //=======================================================================
90 //=======================================================================
91 const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Areas()const
95 //=======================================================================
96 //function :PerformShapesToAvoid
98 //=======================================================================
99 void GEOMAlgo_BuilderArea::PerformShapesToAvoid()
102 //=======================================================================
103 //function : PerformLoops
105 //=======================================================================
106 void GEOMAlgo_BuilderArea::PerformLoops()
109 //=======================================================================
110 //function : PerformAreas
112 //=======================================================================
113 void GEOMAlgo_BuilderArea::PerformAreas()
116 //=======================================================================
117 //function : PerformInternalShapes
119 //=======================================================================
120 void GEOMAlgo_BuilderArea::PerformInternalShapes()