From: eap Date: Mon, 23 May 2011 08:25:50 +0000 (+0000) Subject: fix regression with seam edges made by the previous revision X-Git-Tag: V6_3_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e32634a34698461354f565537292009f52f2878c;p=plugins%2Fnetgenplugin.git fix regression with seam edges made by the previous revision --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index db7807e..22186c4 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -582,9 +582,14 @@ bool NETGENPlugin_Mesher::fillNgMesh(const netgen::OCCGeometry& occgeom, if ( p1.node->GetPosition()->GetTypeOfPosition() == SMDS_TOP_VERTEX ) //an EDGE begins { - isSeam = helper.IsRealSeam( p1.node->getshapeId() ); - if ( isSeam ) - otherSeamParam = helper.GetOtherParam( helper.GetPeriodicIndex() & 1 ? p2.u : p2.v ); + isSeam = false; + if ( helper.IsRealSeam( p1.node->getshapeId() )) + { + geomEdge = fSide.Edge( fSide.EdgeIndex( 0.5 * ( p1.normParam + p2.normParam ))); + isSeam = helper.IsRealSeam( geomEdge ); + if ( isSeam ) + otherSeamParam = helper.GetOtherParam( helper.GetPeriodicIndex() & 1 ? p2.u : p2.v ); + } } netgen::Segment seg; // ng node ids