From 93f0557a04469131e6eae20e1a3ecd2900c7a46a Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 19 Nov 2012 12:38:27 +0000 Subject: [PATCH] 0021542: EDF 1699 SMESH: Reorient a group of faces Fix ("In non-manifold mesh, orient co-directed faces only") --- src/SMESH/SMESH_MeshEditor.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 888aee883..30d762efc 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -1207,6 +1207,10 @@ int SMESH_MeshEditor::Reorient2D (TIDSortedElemSet & theFaces, } } } + else if ( facesNearLink.size() == 1 ) + { + otherFace = facesNearLink[0]; + } if ( otherFace && otherFace != theFace) { // link must be reverse in otherFace if orientation ot otherFace -- 2.39.2