Mantis issue 0020878: EDF GEOM: A former script doesn't work anymore (regression).

This commit is contained in:
jfa 2010-06-04 09:03:29 +00:00
parent 1620879e04
commit 7c20a00c5f

View File

@ -17,12 +17,11 @@
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# GEOM GEOM_SWIG : binding of C++ omplementaion with Python # GEOM GEOM_SWIG : binding of C++ omplementaion with Python
# File : geompy.py # File : geompy.py
# Author : Paul RASCLE, EDF # Author : Paul RASCLE, EDF
# Module : GEOM # Module : GEOM
#
""" """
\namespace geompy \namespace geompy
\brief Module geompy \brief Module geompy
@ -2118,10 +2117,13 @@ class geompyDC(GEOM._objref_GEOM_Gen):
# @return New GEOM_Object, containing processed shape. # @return New GEOM_Object, containing processed shape.
# #
# @ref tui_shape_processing "Example" # @ref tui_shape_processing "Example"
def ProcessShape(self,theShape, theOperators, theParameters, theValues): def ProcessShape(self, theShape, theOperators, theParameters, theValues):
# Example: see GEOM_TestHealing.py # Example: see GEOM_TestHealing.py
theValues,Parameters = ParseList(theValues) theValues,Parameters = ParseList(theValues)
anObj = self.HealOp.ProcessShape(theShape, theOperators, theParameters, theValues) anObj = self.HealOp.ProcessShape(theShape, theOperators, theParameters, theValues)
# To avoid script failure in case of good argument shape
if self.HealOp.GetErrorCode() == "ShHealOper_NotError_msg":
return theShape
RaiseIfFailed("ProcessShape", self.HealOp) RaiseIfFailed("ProcessShape", self.HealOp)
for string in (theOperators + theParameters): for string in (theOperators + theParameters):
Parameters = ":" + Parameters Parameters = ":" + Parameters