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 #ifndef _NMTTools_DEProcessor_HeaderFile
23 #define _NMTTools_DEProcessor_HeaderFile
25 #ifndef _NMTTools_PPaveFiller_HeaderFile
26 #include <NMTTools_PPaveFiller.hxx>
28 #ifndef _NMTDS_PShapesDataStructure_HeaderFile
29 #include <NMTDS_PShapesDataStructure.hxx>
31 #ifndef _Standard_Boolean_HeaderFile
32 #include <Standard_Boolean.hxx>
34 #ifndef _BOPTools_IndexedDataMapOfIntegerDEInfo_HeaderFile
35 #include <BOPTools_IndexedDataMapOfIntegerDEInfo.hxx>
37 #ifndef _Standard_Integer_HeaderFile
38 #include <Standard_Integer.hxx>
40 #ifndef _Standard_Real_HeaderFile
41 #include <Standard_Real.hxx>
43 class NMTTools_PaveFiller;
44 class BOPTools_ListOfPaveBlock;
50 #ifndef _Standard_HeaderFile
51 #include <Standard.hxx>
53 #ifndef _Standard_Macro_HeaderFile
54 #include <Standard_Macro.hxx>
59 //! The Algorithm to compute and store in interferences' pool <br>
60 //! and in the Data Structure the following values <br>
61 //! for degenerated edges <br>
62 //! 1. Paves/Pave set(s) <br>
63 //! 2. Split parts <br>
64 //! 3. States (3D) for split parts <br>
66 class NMTTools_DEProcessor {
70 void* operator new(size_t,void* anAddress)
74 void* operator new(size_t size)
76 return Standard::Allocate(size);
78 void operator delete(void *anAddress)
80 if (anAddress) Standard::Free((Standard_Address&)anAddress);
90 Standard_EXPORT NMTTools_DEProcessor(NMTTools_PaveFiller& aFiller);
93 //! Launches the processor <br>
94 Standard_EXPORT void Do() ;
97 //! Returns TRUE if it is Ok <br>
98 Standard_EXPORT Standard_Boolean IsDone() const;
110 Standard_EXPORT void FindDegeneratedEdges() ;
113 Standard_EXPORT void DoPaves() ;
116 Standard_EXPORT void FindPaveBlocks(const Standard_Integer nED,const Standard_Integer nVD,const Standard_Integer nFD,BOPTools_ListOfPaveBlock& aLPB) ;
119 Standard_EXPORT void FillPaveSet(const Standard_Integer nED,const Standard_Integer nVD,const Standard_Integer nFD,const BOPTools_ListOfPaveBlock& aLPB) ;
122 Standard_EXPORT void FillSplitEdgesPool(const Standard_Integer nED) ;
125 Standard_EXPORT void MakeSplitEdges(const Standard_Integer nED,const Standard_Integer nFD) ;
128 Standard_EXPORT void MakeSplitEdge(const TopoDS_Edge& aS1,const TopoDS_Face& aF,const TopoDS_Vertex& aV1,const Standard_Real aP1,const TopoDS_Vertex& aV2,const Standard_Real aP2,TopoDS_Edge& aNewEdge) ;
133 NMTTools_PPaveFiller myFiller;
134 NMTDS_PShapesDataStructure myDS;
135 Standard_Boolean myIsDone;
136 BOPTools_IndexedDataMapOfIntegerDEInfo myDEMap;
155 // other Inline functions and methods (like "C++: function call" methods)