]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
fix regression with seam edges made by the previous revision V6_3_0 V6_3_0rc1
authoreap <eap@opencascade.com>
Mon, 23 May 2011 08:25:50 +0000 (08:25 +0000)
committereap <eap@opencascade.com>
Mon, 23 May 2011 08:25:50 +0000 (08:25 +0000)
src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index db7807e8cdbab2e411db3ae2f8288809a9f95adf..22186c4de73fd69ba806088cca71ed19917f0618 100644 (file)
@@ -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