From: azv Date: Fri, 22 Apr 2016 10:34:08 +0000 (+0300) Subject: Remove empty wires while building sketch face X-Git-Tag: V_2.3.0~136 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f433b07b58eb10ebfe657ec9116129840c0d88bf;p=modules%2Fshaper.git Remove empty wires while building sketch face --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp index a36b784ef..8096443c1 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp @@ -126,7 +126,10 @@ void GeomAlgoAPI_SketchBuilder::createFaces( for (; aSkIt != aSkippedEdges.end(); ++aSkIt) aBuilder.Add(aNewWire, *aSkIt); - aBuilder.Add(aNewFace, aNewWire); + // check the wire is empty + anExp.Init(aNewWire, TopAbs_EDGE); + if (anExp.More()) + aBuilder.Add(aNewFace, aNewWire); } // store face