Salome HOME
0021058: EDF 1674 SMESH: SetTriangleVertex ends in error with strange message
[modules/smesh.git] / src / StdMeshers / StdMeshers_Quadrangle_2D.cxx
index 38a8a8dd56b80e88d3ae8bffd2179253a4d2c26c..1075db412219861a94ee8a70f3dce65c82c8814a 100644 (file)
@@ -776,7 +776,8 @@ FaceQuadStruct* StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh &         aMes
                                                        const TopoDS_Shape & aShape)
   //throw(SALOME_Exception)
 {
-  const TopoDS_Face & F = TopoDS::Face(aShape);
+  TopoDS_Face F = TopoDS::Face(aShape);
+  if ( F.Orientation() >= TopAbs_INTERNAL ) F.Orientation( TopAbs_FORWARD );
   const bool ignoreMediumNodes = _quadraticMesh;
 
   // verify 1 wire only, with 4 edges