mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
23024: [CEA 1447] Regression imp_1346_CAS2.py
This commit is contained in:
parent
80caa820d0
commit
d06e689ac7
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user