From fbe5e2f556db62685713240419c629ca756ced17 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 23 Nov 2016 11:39:22 +0000
Subject: [PATCH] tentative fix for embedded surfaces/edges, by forcing
 orientation of face when importing the wires

---
 Geo/OCCFace.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Geo/OCCFace.cpp b/Geo/OCCFace.cpp
index c35b69731f..ac730b9064 100644
--- a/Geo/OCCFace.cpp
+++ b/Geo/OCCFace.cpp
@@ -60,7 +60,7 @@ void OCCFace::setup()
   l_edges.clear();
   l_dirs.clear();
   TopExp_Explorer exp2, exp3;
-  for(exp2.Init(s, TopAbs_WIRE); exp2.More(); exp2.Next()){
+  for(exp2.Init(s.Oriented(TopAbs_FORWARD), TopAbs_WIRE); exp2.More(); exp2.Next()){
     TopoDS_Wire wire = TopoDS::Wire(exp2.Current());
     Msg::Debug("OCC Face %d - New Wire", tag());
     std::list<GEdge*> l_wire;
-- 
GitLab