From 744cd75473cc9276d862fa6a7346538b3199c200 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 10 Jun 2009 09:01:31 +0000 Subject: [PATCH] 0020206: EDF SMESH 987: Netgen1D2D3D +submesh (Regression : Compute Mesh_2) SMDS_MeshElement::GetNode() no more wraps indices --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 33b3039..8558200 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -24,6 +24,7 @@ // Author : Michael Sazonov (OCN) // Date : 31/03/2006 // Project : SALOME +//============================================================================= // #include "NETGENPlugin_Mesher.hxx" #include "NETGENPlugin_Hypothesis_2D.hxx" @@ -466,11 +467,11 @@ bool NETGENPlugin_Mesher::fillNgMesh(netgen::OCCGeometry& occgeom, for ( int i = 0; i < 3; ++i ) { const SMDS_MeshNode* node = f->GetNode( i ), * inFaceNode=0; if ( helper.IsSeamShape( node->GetPosition()->GetShapeId() )) - if ( helper.IsSeamShape( f->GetNode( i+1 )->GetPosition()->GetShapeId() )) - inFaceNode = f->GetNode( i-1 ); + if ( helper.IsSeamShape( f->GetNodeWrap( i+1 )->GetPosition()->GetShapeId() )) + inFaceNode = f->GetNodeWrap( i-1 ); else - inFaceNode = f->GetNode( i+1 ); - + inFaceNode = f->GetNodeWrap( i+1 ); + gp_XY uv = helper.GetNodeUV( geomFace, node, inFaceNode ); if ( reverse ) { tri.GeomInfoPi(3-i).u = uv.X(); -- 2.39.2