From 1552ad307adbe17475f827523a4a475422f2530f Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 10 Mar 2009 16:36:42 +0000 Subject: [PATCH] 0020200: EDF SMESH 983: changing algo of a mesh and switching back to original algo leads to different result than original sort nodes by ID --- src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx index 0400de6..321d39e 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx @@ -25,7 +25,6 @@ // Created : lundi 27 Janvier 2003 // Author : Nadir BOUHAMOU (CEA) // Project : SALOME -// $Header$ //============================================================================= // #include "NETGENPlugin_NETGEN_3D.hxx" @@ -40,6 +39,7 @@ #include "SMESH_Gen.hxx" #include "SMESH_Mesh.hxx" #include "SMESH_MesherHelper.hxx" +#include "SMESH_MeshEditor.hxx" #include "StdMeshers_QuadToTriaAdaptor.hxx" #include @@ -64,6 +64,7 @@ namespace nglib { #include } using namespace nglib; +using namespace std; //============================================================================= /*! @@ -173,7 +174,7 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh, SMESH_MesherHelper* myTool = &helper; bool _quadraticMesh = myTool->IsQuadraticSubMesh(aShape); - typedef map< const SMDS_MeshNode*, int> TNodeToIDMap; + typedef map< const SMDS_MeshNode*, int, TIDCompare< SMDS_MeshNode> > TNodeToIDMap; TNodeToIDMap nodeToNetgenID; list< const SMDS_MeshElement* > triangles; list< bool > isReversed; // orientation of triangles -- 2.39.2