1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

Compiler error has been eliminated.

DRAW-command has been added.
This commit is contained in:
nbv
2015-09-08 11:28:12 +03:00
parent d6663ff228
commit 2873301ed5
2 changed files with 29 additions and 2 deletions

View 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;

View File

@@ -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;
}