2 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU Lesser General Public
9 // License as published by the Free Software Foundation; either
10 // version 2.1 of the License.
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // Lesser General Public License for more details.
17 // You should have received a copy of the GNU Lesser General Public
18 // License along with this library; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File: NMTAlgo_WESCorrector.hxx
25 // Author: Peter KURNEV
28 #ifndef _GEOMAlgo_WESCorrector_HeaderFile
29 #define _GEOMAlgo_WESCorrector_HeaderFile
31 #include <Standard.hxx>
32 #include <Standard_Macro.hxx>
33 #include <GEOMAlgo_PWireEdgeSet.hxx>
34 #include <GEOMAlgo_WireEdgeSet.hxx>
35 #include <BOP_ListOfConnexityBlock.hxx>
36 #include <GEOMAlgo_Algo.hxx>
39 //! The algorithm to change the Wire Edges Set (WES) contents. <br>
40 //! The NewWES will contain only wires instead of wires and edges. <br>
41 //=======================================================================
42 //class : GEOMAlgo_WESCorrector
44 //=======================================================================
45 class GEOMAlgo_WESCorrector : public GEOMAlgo_Algo
48 //! Empty constructor; <br>
51 GEOMAlgo_WESCorrector();
54 virtual ~GEOMAlgo_WESCorrector();
58 void SetWES(const GEOMAlgo_WireEdgeSet& aWES) ;
60 //! Performs the algorithm that consists of two steps <br>
61 //! 1. Make conexity blocks ( DoConnexityBlocks() ) <br>
62 //! 2. Make corrections ( DoCorrections() ) <br>
64 virtual void Perform() ;
68 GEOMAlgo_WireEdgeSet& WES() ;
72 GEOMAlgo_WireEdgeSet& NewWES() ;
76 void DoConnexityBlocks() ;
79 void DoCorrections() ;
82 GEOMAlgo_PWireEdgeSet myWES;
83 GEOMAlgo_WireEdgeSet myNewWES;
84 BOP_ListOfConnexityBlock myConnexityBlocks;