mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 01:40:33 +05:00
control GEOM instance used in SMESH scripts
This commit is contained in:
parent
2ffe4e63a8
commit
b7c268a645
@ -1185,9 +1185,10 @@ omniORB.registerObjref(SMESH._objref_SMESH_Gen._NP_RepositoryId, smeshBuilder)
|
|||||||
# \endcode
|
# \endcode
|
||||||
# @param study SALOME study, generally obtained by salome.myStudy.
|
# @param study SALOME study, generally obtained by salome.myStudy.
|
||||||
# @param instance CORBA proxy of SMESH Engine. If None, the default Engine is used.
|
# @param instance CORBA proxy of SMESH Engine. If None, the default Engine is used.
|
||||||
|
# @param instanceGeom CORBA proxy of GEOM Engine. If None, the default Engine is used.
|
||||||
# @return smeshBuilder instance
|
# @return smeshBuilder instance
|
||||||
|
|
||||||
def New( study, instance=None):
|
def New( study, instance=None, instanceGeom=None):
|
||||||
"""
|
"""
|
||||||
Create a new smeshBuilder instance.The smeshBuilder class provides the Python
|
Create a new smeshBuilder instance.The smeshBuilder class provides the Python
|
||||||
interface to create or load meshes.
|
interface to create or load meshes.
|
||||||
@ -1201,6 +1202,7 @@ def New( study, instance=None):
|
|||||||
Parameters:
|
Parameters:
|
||||||
study SALOME study, generally obtained by salome.myStudy.
|
study SALOME study, generally obtained by salome.myStudy.
|
||||||
instance CORBA proxy of SMESH Engine. If None, the default Engine is used.
|
instance CORBA proxy of SMESH Engine. If None, the default Engine is used.
|
||||||
|
instanceGeom CORBA proxy of GEOM Engine. If None, the default Engine is used.
|
||||||
Returns:
|
Returns:
|
||||||
smeshBuilder instance
|
smeshBuilder instance
|
||||||
"""
|
"""
|
||||||
@ -1212,7 +1214,7 @@ def New( study, instance=None):
|
|||||||
doLcc = True
|
doLcc = True
|
||||||
smeshInst = smeshBuilder()
|
smeshInst = smeshBuilder()
|
||||||
assert isinstance(smeshInst,smeshBuilder), "Smesh engine class is %s but should be smeshBuilder.smeshBuilder. Import salome.smesh.smeshBuilder before creating the instance."%smeshInst.__class__
|
assert isinstance(smeshInst,smeshBuilder), "Smesh engine class is %s but should be smeshBuilder.smeshBuilder. Import salome.smesh.smeshBuilder before creating the instance."%smeshInst.__class__
|
||||||
smeshInst.init_smesh(study)
|
smeshInst.init_smesh(study, instanceGeom)
|
||||||
return smeshInst
|
return smeshInst
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user