23024: [CEA 1447] Regression imp_1346_CAS2.py

This commit is contained in:
eap 2015-03-19 18:26:38 +03:00
parent 80caa820d0
commit d06e689ac7
2 changed files with 4 additions and 2 deletions

View File

@ -2458,8 +2458,8 @@ namespace MeshEditor_I
ExtrusionParams(CORBA::Double theStepSize,
CORBA::Long theNbOfSteps,
CORBA::Short theDim,
CORBA::Boolean theUseInputElemsOnly,
CORBA::Boolean theByAverageNormal,
CORBA::Boolean theUseInputElemsOnly,
CORBA::Boolean theMakeGroups ):
::SMESH_MeshEditor::ExtrusParam ( theStepSize,
theNbOfSteps,

View File

@ -4738,14 +4738,16 @@ class Mesh:
#
class meshEditor(SMESH._objref_SMESH_MeshEditor):
def __init__(self):
SMESH._objref_SMESH_MeshEditor.__init__(self)
self.mesh = None
def __getattr__(self, name ): # method called if an attribute not found
if not self.mesh:
if not self.mesh: # look for name() method in Mesh class
self.mesh = Mesh( None, None, SMESH._objref_SMESH_MeshEditor.GetMesh(self))
if hasattr( self.mesh, name ):
return getattr( self.mesh, name )
if name == "ExtrusionAlongPathObjX":
return getattr( self.mesh, "ExtrusionAlongPathX" )
print name, "NOT FOUND"
return None
pass
omniORB.registerObjref(SMESH._objref_SMESH_MeshEditor._NP_RepositoryId, meshEditor)