1 // Created by: Peter KURNEV
2 // Copyright (c) 2010-2014 OPEN CASCADE SAS
3 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5 // EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7 // This file is part of Open CASCADE Technology software library.
9 // This library is free software; you can redistribute it and / or modify it
10 // under the terms of the GNU Lesser General Public version 2.1 as published
11 // by the Free Software Foundation, with special exception defined in the file
12 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
13 // distribution for complete text of the license and disclaimer of any warranty.
15 // Alternatively, this file may be used under the terms of Open CASCADE
16 // commercial license or contractual agreement.
18 #include <BOPAlgo_PaveFiller.ixx>
20 #include <NCollection_BaseAllocator.hxx>
22 #include <BOPInt_Context.hxx>
23 #include <BOPDS_DS.hxx>
24 #include <BOPDS_Iterator.hxx>
26 //=======================================================================
29 //=======================================================================
30 BOPAlgo_PaveFiller::BOPAlgo_PaveFiller()
37 //=======================================================================
40 //=======================================================================
41 BOPAlgo_PaveFiller::BOPAlgo_PaveFiller(const Handle(NCollection_BaseAllocator)& theAllocator)
43 BOPAlgo_Algo(theAllocator)
48 //=======================================================================
51 //=======================================================================
52 BOPAlgo_PaveFiller::~BOPAlgo_PaveFiller()
56 //=======================================================================
59 //=======================================================================
60 void BOPAlgo_PaveFiller::Clear()
72 //=======================================================================
75 //=======================================================================
76 const BOPDS_DS& BOPAlgo_PaveFiller::DS()
80 //=======================================================================
83 //=======================================================================
84 BOPDS_PDS BOPAlgo_PaveFiller::PDS()
88 //=======================================================================
91 //=======================================================================
92 Handle(BOPInt_Context) BOPAlgo_PaveFiller::Context()
96 //=======================================================================
97 //function : SectionAttribute
99 //=======================================================================
100 void BOPAlgo_PaveFiller::SetSectionAttribute(const BOPAlgo_SectionAttribute& theSecAttr)
102 mySectionAttribute = theSecAttr;
104 //=======================================================================
105 //function : SetArguments
107 //=======================================================================
108 void BOPAlgo_PaveFiller::SetArguments(const BOPCol_ListOfShape& theLS)
112 //=======================================================================
113 //function : Arguments
115 //=======================================================================
116 const BOPCol_ListOfShape& BOPAlgo_PaveFiller::Arguments()const
120 //=======================================================================
123 //=======================================================================
124 void BOPAlgo_PaveFiller::Init()
128 if (!myArguments.Extent()) {
137 myDS=new BOPDS_DS(myAllocator);
138 myDS->SetArguments(myArguments);
142 myIterator=new BOPDS_Iterator(myAllocator);
143 myIterator->SetDS(myDS);
144 myIterator->Prepare();
147 myContext=new BOPInt_Context;
151 //=======================================================================
154 //=======================================================================
155 void BOPAlgo_PaveFiller::Perform()
174 myDS->UpdatePaveBlocks();