]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
SALOME Forum bug: http://www.salome-platform.org/forum/forum_10/967838025
authoreap <eap@opencascade.com>
Fri, 23 Aug 2013 16:23:57 +0000 (16:23 +0000)
committereap <eap@opencascade.com>
Fri, 23 Aug 2013 16:23:57 +0000 (16:23 +0000)
Ignore degenerated EDGEs when counting computed sub-meshes

src/StdMeshers/StdMeshers_Import_1D.cxx

index c24c20aac3bd377ae835e24978b6010285d9e9ef..6443d98d2a23591d79a0122618d80ffe358a98ec 100644 (file)
@@ -227,6 +227,8 @@ namespace // INTERNAL STUFF
         switch ( sm->GetSubShape().ShapeType() )
         {
         case TopAbs_EDGE:
+          if ( SMESH_Algo::isDegenerated( TopoDS::Edge( sm->GetSubShape() )))
+            continue;
         case TopAbs_FACE:
           _subM.insert( sm );
           if ( !sm->IsEmpty() )