From 06b26edc7c5ab0315be8ada05a62c12dd162f59d Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 23 Nov 2007 09:47:38 +0000 Subject: [PATCH] correct errors NPAL 16558 --- src/GEOMImpl/GEOMImpl_ChamferDriver.cxx | 9 ++++++--- src/GEOMImpl/GEOMImpl_ILocalOperations.cxx | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/GEOMImpl/GEOMImpl_ChamferDriver.cxx b/src/GEOMImpl/GEOMImpl_ChamferDriver.cxx index 61a812b55..5e9059ed5 100644 --- a/src/GEOMImpl/GEOMImpl_ChamferDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ChamferDriver.cxx @@ -165,7 +165,8 @@ Standard_Integer GEOMImpl_ChamferDriver::Execute(TFunction_Logbook& log) const { double aD = aCI.GetD(); double anAngle = aCI.GetAngle(); - fill.AddDA(aD, anAngle, E, F); + if (anAngle > 0) + fill.AddDA(aD, anAngle, E, F); } } } @@ -205,7 +206,8 @@ Standard_Integer GEOMImpl_ChamferDriver::Execute(TFunction_Logbook& log) const { double aD = aCI.GetD(); double anAngle = aCI.GetAngle(); - fill.AddDA(aD, anAngle, E, F); + if (anAngle > 0) + fill.AddDA(aD, anAngle, E, F); } } } @@ -239,7 +241,8 @@ else if (aType == CHAMFER_SHAPE_EDGES || aType == CHAMFER_SHAPE_EDGES_AD) { double aD = aCI.GetD(); double anAngle = aCI.GetAngle(); - fill.AddDA(aD, anAngle, E, F); + if (anAngle > 0) + fill.AddDA(aD, anAngle, E, F); } } } diff --git a/src/GEOMImpl/GEOMImpl_ILocalOperations.cxx b/src/GEOMImpl/GEOMImpl_ILocalOperations.cxx index 3dcf6e9af..14ef16443 100644 --- a/src/GEOMImpl/GEOMImpl_ILocalOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_ILocalOperations.cxx @@ -571,7 +571,6 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferEdgeAD GEOM::TPythonDump(aFunction) << aChamfer << " = geompy.MakeChamferEdgeAD(" << theShape << ", " << theD << ", " << theAngle << ", " << theFace1 << ", " << theFace2 << ")"; - cout << "ANGLE = " << theAngle << endl; SetErrorCode(OK); return aChamfer; } -- 2.39.2