]> OCCT Git - occt-copy.git/commitdiff
Compiler error has been eliminated. CR26640_2_680_auto
authornbv <nbv@opencascade.com>
Tue, 8 Sep 2015 08:28:12 +0000 (11:28 +0300)
committernbv <nbv@opencascade.com>
Tue, 8 Sep 2015 08:30:14 +0000 (11:30 +0300)
DRAW-command has been added.

src/BRepFill/BRepFill_OffsetWire.cxx
src/QABugs/QABugs_19.cxx

index 175923492c9ac45ff03635b1842130ba507c6513..8ccff1ad3a9bb2166ca19f983fbaf40d450432aa 100644 (file)
@@ -263,8 +263,7 @@ static Standard_Boolean KPartCircle
     C = Ct->BasisCurve();
   }
 
-  if ((C->IsKind(STANDARD_TYPE(Geom_Circle)) && BRep_Tool::IsClosed(E)) || //closed circle
-      IsOpenResult)
+  if ((C->IsKind(STANDARD_TYPE(Geom_Circle)) && BRep_Tool::IsClosed(E))) //closed circle      
   {
     Standard_Real anOffset = myOffset;
     if (E.Orientation() == TopAbs_REVERSED) anOffset *= -1;
index 62008a795d85073a6e210662b7efd6546e7cb7f9..316040d46ea1d07c29090aabeca1323b5d127af9 100755 (executable)
@@ -3126,6 +3126,31 @@ static Standard_Integer OCC25446 (Draw_Interpretor& theDI,
   return 0;
 }
 
+#include <ShapeFix_Edge.hxx>
+#include <TopoDS_Edge.hxx>
+
+static Standard_Integer OCC26640 (Draw_Interpretor& /*theDI*/, Standard_Integer /*theArgc*/, const char** theArgv)
+{
+  TopoDS_Face aFace = TopoDS::Face(DBRep::Get(theArgv[1]));
+
+  TopExp_Explorer anExp(aFace, TopAbs_EDGE);
+  const TopoDS_Edge& anEdg = TopoDS::Edge(anExp.Current());
+
+  Handle(ShapeBuild_ReShape) aContext = new ShapeBuild_ReShape;
+  const TopoDS_Shape& aResult = aContext->Apply(aFace);
+
+  ShapeFix_Edge sfe;
+
+  sfe.FixRemovePCurve(anEdg, aFace);
+  sfe.FixAddPCurve(anEdg, aFace, Standard_False);
+
+  aContext->Replace(aFace, aResult);
+
+  return 0;
+}
+
+
+
 void QABugs::Commands_19(Draw_Interpretor& theCommands) {
   const char *group = "QABugs";
 
@@ -3187,5 +3212,8 @@ void QABugs::Commands_19(Draw_Interpretor& theCommands) {
   theCommands.Add ("OCC25348", "OCC25348", __FILE__, OCC25348, group);
   theCommands.Add ("OCC25413", "OCC25413 shape", __FILE__, OCC25413, group);
   theCommands.Add ("OCC25446", "OCC25446 res b1 b2 op", __FILE__, OCC25446, group);
+
+  theCommands.Add ("OCC26640", "OCC26640 face", __FILE__, OCC26640, group);
+
   return;
 }