From 2873301ed5077fac3a4131adab5ec2cb9f94478e Mon Sep 17 00:00:00 2001 From: nbv Date: Tue, 8 Sep 2015 11:28:12 +0300 Subject: [PATCH] Compiler error has been eliminated. DRAW-command has been added. --- src/BRepFill/BRepFill_OffsetWire.cxx | 3 +-- src/QABugs/QABugs_19.cxx | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/BRepFill/BRepFill_OffsetWire.cxx b/src/BRepFill/BRepFill_OffsetWire.cxx index 175923492c..8ccff1ad3a 100644 --- a/src/BRepFill/BRepFill_OffsetWire.cxx +++ b/src/BRepFill/BRepFill_OffsetWire.cxx @@ -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; diff --git a/src/QABugs/QABugs_19.cxx b/src/QABugs/QABugs_19.cxx index 62008a795d..316040d46e 100755 --- a/src/QABugs/QABugs_19.cxx +++ b/src/QABugs/QABugs_19.cxx @@ -3126,6 +3126,31 @@ static Standard_Integer OCC25446 (Draw_Interpretor& theDI, return 0; } +#include +#include + +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; } -- 2.39.5