From: eap Date: Fri, 17 Sep 2010 05:53:51 +0000 (+0000) Subject: 0020993: EDF 1571 BLSURFPLUGIN: BlSurf can't mesh a disk with a disk included in it X-Git-Tag: V5_1_5a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5bd59b326afba95928c63c360a2cb8e853c89613;p=plugins%2Fblsurfplugin.git 0020993: EDF 1571 BLSURFPLUGIN: BlSurf can't mesh a disk with a disk included in it + // make INTERNAL face oriented FORWARD (issue 0020993) + if (f.Orientation() != TopAbs_FORWARD && f.Orientation() != TopAbs_REVERSED ) + f.Orientation(TopAbs_FORWARD); --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index b4fb881..7e679fa 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -922,6 +922,10 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) int faceKey = -1; for (TopExp_Explorer face_iter(aShape,TopAbs_FACE);face_iter.More();face_iter.Next()) { TopoDS_Face f=TopoDS::Face(face_iter.Current()); + + // make INTERNAL face oriented FORWARD (issue 0020993) + if (f.Orientation() != TopAbs_FORWARD && f.Orientation() != TopAbs_REVERSED ) + f.Orientation(TopAbs_FORWARD); if (fmap.FindIndex(f) > 0) continue;