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, ExtrusionParams(CORBA::Double theStepSize,
CORBA::Long theNbOfSteps, CORBA::Long theNbOfSteps,
CORBA::Short theDim, CORBA::Short theDim,
CORBA::Boolean theUseInputElemsOnly,
CORBA::Boolean theByAverageNormal, CORBA::Boolean theByAverageNormal,
CORBA::Boolean theUseInputElemsOnly,
CORBA::Boolean theMakeGroups ): CORBA::Boolean theMakeGroups ):
::SMESH_MeshEditor::ExtrusParam ( theStepSize, ::SMESH_MeshEditor::ExtrusParam ( theStepSize,
theNbOfSteps, theNbOfSteps,

View File

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