]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
correct errors NPAL 16558
authordmv <dmv@opencascade.com>
Fri, 23 Nov 2007 09:47:38 +0000 (09:47 +0000)
committerdmv <dmv@opencascade.com>
Fri, 23 Nov 2007 09:47:38 +0000 (09:47 +0000)
src/GEOMImpl/GEOMImpl_ChamferDriver.cxx
src/GEOMImpl/GEOMImpl_ILocalOperations.cxx

index 61a812b552aa91be7a15cb58250025912ec07ffd..5e9059ed50ffb4fdab7096dfee92ce998a1310ee 100644 (file)
@@ -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);
            }
        } 
     } 
index 3dcf6e9afa31592b8afb3efa51df9c5346abf3f8..14ef164437d948b829f35c4b8fe9c73c75e7da4d 100644 (file)
@@ -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;
 }