]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Remove empty wires while building sketch face
authorazv <azv@opencascade.com>
Fri, 22 Apr 2016 10:34:08 +0000 (13:34 +0300)
committerazv <azv@opencascade.com>
Fri, 22 Apr 2016 10:34:08 +0000 (13:34 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp

index a36b784ef46a675c111ace26e111fe2e56417236..8096443c1b2b2f6ff7bf613b3a336cfa0b612f2c 100644 (file)
@@ -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