Salome HOME
0020557: EDF 1151 SMESH: Netgen 2D fail to mesh a ring
authoreap <eap@opencascade.com>
Thu, 29 Oct 2009 08:30:57 +0000 (08:30 +0000)
committereap <eap@opencascade.com>
Thu, 29 Oct 2009 08:30:57 +0000 (08:30 +0000)
src/StdMeshers/StdMeshers_FaceSide.cxx

index aef26665d4159f3e88e36bb52727cdf0bb3c551c..c677973be2bf2aca288bd974c04e7b18b00e2276 100644 (file)
@@ -541,15 +541,7 @@ TSideVector StdMeshers_FaceSide::GetFaceWires(const TopoDS_Face& theFace,
         return TSideVector(0);
       }
     }
-    // find out side orientation, which is important if there are several wires (PAL19080) 
-    bool isForward = true;
-    if ( nbWires > 1 ) {
-      TopExp_Explorer e( theFace, TopAbs_EDGE );
-      while ( ! e.Current().IsSame( wireEdges.back() ))
-        e.Next();
-      isForward = ( e.Current().Orientation() == wireEdges.back().Orientation() );
-    }
-
+    const bool isForward = true;
     StdMeshers_FaceSide* wire = new StdMeshers_FaceSide( theFace, wireEdges, &theMesh,
                                                          isForward, theIgnoreMediumNodes);
     wires[ iW ] = StdMeshers_FaceSidePtr( wire );