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 under
10 // the terms of the GNU Lesser General Public License 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 <Standard_ErrorHandler.hxx>
21 #include <Standard_Failure.hxx>
23 #include <NCollection_BaseAllocator.hxx>
25 #include <BOPInt_Context.hxx>
26 #include <BOPDS_DS.hxx>
27 #include <BOPDS_Iterator.hxx>
30 //=======================================================================
33 //=======================================================================
34 BOPAlgo_PaveFiller::BOPAlgo_PaveFiller()
41 //=======================================================================
44 //=======================================================================
45 BOPAlgo_PaveFiller::BOPAlgo_PaveFiller
46 (const Handle(NCollection_BaseAllocator)& theAllocator)
48 BOPAlgo_Algo(theAllocator)
53 //=======================================================================
56 //=======================================================================
57 BOPAlgo_PaveFiller::~BOPAlgo_PaveFiller()
61 //=======================================================================
64 //=======================================================================
65 void BOPAlgo_PaveFiller::Clear()
76 //=======================================================================
79 //=======================================================================
80 const BOPDS_DS& BOPAlgo_PaveFiller::DS()
84 //=======================================================================
87 //=======================================================================
88 BOPDS_PDS BOPAlgo_PaveFiller::PDS()
92 //=======================================================================
95 //=======================================================================
96 Handle(BOPInt_Context) BOPAlgo_PaveFiller::Context()
100 //=======================================================================
101 //function : SectionAttribute
103 //=======================================================================
104 void BOPAlgo_PaveFiller::SetSectionAttribute
105 (const BOPAlgo_SectionAttribute& theSecAttr)
107 mySectionAttribute = theSecAttr;
109 //=======================================================================
110 //function : SetArguments
112 //=======================================================================
113 void BOPAlgo_PaveFiller::SetArguments(const BOPCol_ListOfShape& theLS)
117 //=======================================================================
118 //function : Arguments
120 //=======================================================================
121 const BOPCol_ListOfShape& BOPAlgo_PaveFiller::Arguments()const
125 //=======================================================================
128 //=======================================================================
129 void BOPAlgo_PaveFiller::Init()
133 if (!myArguments.Extent()) {
142 myDS=new BOPDS_DS(myAllocator);
143 myDS->SetArguments(myArguments);
147 myIterator=new BOPDS_Iterator(myAllocator);
148 myIterator->SetDS(myDS);
149 myIterator->Prepare();
152 myContext=new BOPInt_Context;
156 //=======================================================================
159 //=======================================================================
160 void BOPAlgo_PaveFiller::Perform()
181 myDS->UpdatePaveBlocks();
226 catch (Standard_Failure) {