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