]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correct an example
authorvsr <vsr@opencascade.com>
Thu, 1 Nov 2018 08:04:12 +0000 (11:04 +0300)
committervsr <vsr@opencascade.com>
Thu, 1 Nov 2018 08:04:12 +0000 (11:04 +0300)
doc/salome/examples/repairing_operations_ex01.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 0e7d55a..be00007
@@ -19,7 +19,7 @@ theShape = geompy.MakePrismVecH(face, edge, 130)
 
 # check the shape at the beginning
 print("Before ProcessShape:")
-isValid = geompy.CheckShape(theShape)
+isValid = geompy.CheckShape(theShape, True)
 if isValid == 0:
     print("The shape is not valid")
 else:
@@ -33,7 +33,7 @@ PS = geompy.ProcessShape(theShape, Operators, Parameters, Values)
 
 # check the shape at the end
 print("After ProcessShape:")
-isValid = geompy.CheckShape(PS)
+isValid = geompy.CheckShape(PS, True)
 if isValid == 0:
     print("The shape is not valid")
     raise RuntimeError("It seems, that the ProcessShape() has failed")