Salome HOME
IMP 0021064: correct implementation
authorjfa <jfa@opencascade.com>
Thu, 14 Apr 2011 14:17:07 +0000 (14:17 +0000)
committerjfa <jfa@opencascade.com>
Thu, 14 Apr 2011 14:17:07 +0000 (14:17 +0000)
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx
src/GEOM_SWIG/geompyDC.py

index f4e9fb3ec6a954ce4266edbbd9a03639bcc54fef..8845b064dfffbebc3abcd5baf2039250df0f87cf 100644 (file)
@@ -889,7 +889,7 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
   // Check shape validity
   BRepCheck_Analyzer ana (aShape, false);
   if (!ana.IsValid()) {
-    //Standard_ConstructionError::Raise("Algorithm have produced an invalid shape result");
+    Standard_ConstructionError::Raise("Algorithm have produced an invalid shape result");
   }
 
   aFunction->SetValue(aShape);
index dc2d6a86f50a1d1267fc5c8fee5089666d6f3ab9..e8625a9f4535243b3427da41cba3e1e90ce66464 100644 (file)
@@ -1661,7 +1661,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
             # Example: see GEOM_TestAll.py
             theLength, Parameters = ParseParameters(theLength)
             anObj = self.ShapesOp.MakeEdgeOnCurveByLength(theRefCurve, theLength, theStartPoint)
-            RaiseIfFailed("MakeEdgeOnCurveByLength", self.BasicOp)
+            RaiseIfFailed("MakeEdgeOnCurveByLength", self.ShapesOp)
             anObj.SetParameters(Parameters)
             return anObj