# 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:
# 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")