From: jfa Date: Mon, 17 Aug 2020 11:39:23 +0000 (+0300) Subject: bos #16247: EDF - Problem of partition X-Git-Tag: V9_6_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=665d9f4816103ce25b6127a3fbbf4548395b403d;p=modules%2Fgeom.git bos #16247: EDF - Problem of partition --- diff --git a/src/GEOMImpl/GEOMImpl_Block6Explorer.cxx b/src/GEOMImpl/GEOMImpl_Block6Explorer.cxx index 5eae3592e..860302cc8 100644 --- a/src/GEOMImpl/GEOMImpl_Block6Explorer.cxx +++ b/src/GEOMImpl/GEOMImpl_Block6Explorer.cxx @@ -1360,8 +1360,15 @@ TCollection_AsciiString GEOMImpl_Block6Explorer::MakeAnyFace (const TopoDS_Wire& aHealer.SetParameter("DropSmallEdges.Tolerance3d", 1e-05); aHealer.Perform(aFace1, aFace2); - if (aHealer.isDone()) - theResult = aFace2; + if (aHealer.isDone()) { + // Check nb of edges in the resulting face, as sometimes + // some degenerated edges are added for unknown reason + Standard_Integer nbEdgesNew = 0; + TopExp_Explorer aFE (aFace2, TopAbs_EDGE); + for (; aFE.More(); aFE.Next()) nbEdgesNew++; + if (nbEdgesNew == nbEdges) + theResult = aFace2; + } } } // 12.04.2006 for PAL12149 end