Salome HOME
53057: NETGEN-1D2D3D issues "Ignored" warning for faces of a sub-mesh
[modules/smesh.git] / src / SMESH / SMESH_MesherHelper.cxx
index 3703a7215de3c4d0e89733d5da826d9c539f0615..40016a4884233f2ea779157a3c6398107a8dd337 100644 (file)
@@ -2904,6 +2904,10 @@ bool SMESH_MesherHelper::IsReversedSubMesh (const TopoDS_Face& theFace)
             bool ok = true;
             double u0 = GetNodeU( TopoDS::Edge( E ), nn[0], nn[1], &ok );
             double u1 = GetNodeU( TopoDS::Edge( E ), nn[1], nn[0], &ok );
+            // check that the 2 nodes are connected with a segment (IPAL53055)
+            // if ( SMESHDS_SubMesh* sm = GetMeshDS()->MeshElements( E ))
+            //   if ( sm->NbElements() > 0 && !GetMeshDS()->FindEdge( nn[0], nn[1] ))
+            //     ok = false;
             if ( ok )
             {
               isReversed = ( u0 > u1 );