1 // Copyright (C) 2007-2012 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
23 // File: NMTTools_Tools.hxx
24 // Created: Mon Dec 8 10:35:15 2003
25 // Author: Peter KURNEV
28 #ifndef _NMTTools_Tools_HeaderFile
29 #define _NMTTools_Tools_HeaderFile
31 #include <Standard.hxx>
32 #include <Standard_Macro.hxx>
33 #include <Standard_Boolean.hxx>
34 #include <Handle_IntTools_Context.hxx>
35 #include <Handle_Geom2d_Curve.hxx>
36 #include <Standard_Real.hxx>
37 #include <TopTools_ListOfShape.hxx>
38 #include <TopoDS_Vertex.hxx>
39 #include <BOPTools_CArray1OfVVInterference.hxx>
40 #include <BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger.hxx>
41 #include <BOPTools_CArray1OfSSInterference.hxx>
42 #include <TopoDS_Edge.hxx>
43 #include <TopoDS_Face.hxx>
44 #include <IntTools_Context.hxx>
45 #include <NMTTools_ListOfCoupleOfShape.hxx>
46 #include <NMTTools_IndexedDataMapOfShapeIndexedMapOfShape.hxx>
47 #include <Geom2d_Curve.hxx>
49 //=======================================================================
50 //function : NMTTools_Tools
52 //=======================================================================
53 class NMTTools_Tools {
56 static void MakeNewVertex(const TopTools_ListOfShape& aLV,
57 TopoDS_Vertex& aNewVertex) ;
60 static void FindChains(const BOPTools_CArray1OfVVInterference& aVVs,
61 BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCX) ;
64 static void FindChains(const BOPTools_CArray1OfSSInterference& aVVs,
65 BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCX) ;
68 static void FindChains(const BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCV,
69 BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCX) ;
72 static Standard_Boolean IsSplitInOnFace(const TopoDS_Edge& aE,
73 const TopoDS_Face& aF,
74 const Handle(IntTools_Context)& aCtx) ;
77 static Standard_Boolean AreFacesSameDomain(const TopoDS_Face& aF1,
78 const TopoDS_Face& aF2,
79 const Handle(IntTools_Context)& aCtx) ;
82 static void FindChains(const NMTTools_ListOfCoupleOfShape& aLCS,
83 NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& aM) ;
86 static void FindChains(const NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& aM1,
87 NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& aM2) ;
90 static void MakePCurve(const TopoDS_Edge& aE,
91 const TopoDS_Face& aF,
92 const Handle(Geom2d_Curve)& aC2D) ;
95 static void UpdateEdge(const TopoDS_Edge& aE,
96 const Standard_Real aTol) ;