From 5bd59b326afba95928c63c360a2cb8e853c89613 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 17 Sep 2010 05:53:51 +0000 Subject: [PATCH] 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); --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.2