]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh comput...
authoreap <eap@opencascade.com>
Thu, 18 Mar 2010 09:42:08 +0000 (09:42 +0000)
committereap <eap@opencascade.com>
Thu, 18 Mar 2010 09:42:08 +0000 (09:42 +0000)
* In GetOrderedEdges(), preview presence of the internal vertex within the face

src/SMESH/SMESH_Block.cxx

index 14b373536fb3ef31c13a0d274f69e4166c1229b9..c84d6413cb158153ef6dd4855e5ae4f6e75ba4be 100644 (file)
@@ -981,10 +981,13 @@ int SMESH_Block::GetOrderedEdges (const TopoDS_Face&   theFace,
   TopoDS_Wire anOuterWire =
     theShapeAnalysisAlgo ? ShapeAnalysis::OuterWire( theFace ) : BRepTools::OuterWire( theFace );
   for ( TopoDS_Iterator wIt (theFace); wIt.More(); wIt.Next() )
-    if ( !anOuterWire.IsSame( wIt.Value() ))
-      aWireList.push_back( TopoDS::Wire( wIt.Value() ));
-    else
-      aWireList.push_front( TopoDS::Wire( wIt.Value() ));
+    if ( wIt.Value().ShapeType() == TopAbs_WIRE ) // it can be internal vertex!
+    {
+      if ( !anOuterWire.IsSame( wIt.Value() ))
+        aWireList.push_back( TopoDS::Wire( wIt.Value() ));
+      else
+        aWireList.push_front( TopoDS::Wire( wIt.Value() ));
+    }
 
   // loop on edges of wires
   theNbVertexInWires.clear();