mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 12:50:36 +05:00
small fix
This commit is contained in:
parent
d3f04bfe6b
commit
fb93a51d7d
@ -94,7 +94,7 @@ def displaySmeshObject(entry):
|
|||||||
Display the SMESH object associated to the specified entry
|
Display the SMESH object associated to the specified entry
|
||||||
(the entry is the identifier of an item in the objects browser).
|
(the entry is the identifier of an item in the objects browser).
|
||||||
'''
|
'''
|
||||||
if not SalomeGUI.hasDesktop():
|
if not helper.SalomeGUI.hasDesktop():
|
||||||
print "displayGeomObjects: no desktop available"
|
print "displayGeomObjects: no desktop available"
|
||||||
return
|
return
|
||||||
SmeshGUI.CreateAndDisplayActor(entry)
|
SmeshGUI.CreateAndDisplayActor(entry)
|
||||||
@ -158,6 +158,11 @@ def TEST_selectAndExport_02():
|
|||||||
exportFileName = "/tmp/"+myName+".unv"
|
exportFileName = "/tmp/"+myName+".unv"
|
||||||
myMesh.ExportUNV(exportFileName)
|
myMesh.ExportUNV(exportFileName)
|
||||||
|
|
||||||
|
def TEST_display():
|
||||||
|
mySObject, myEntry = helper.getSObjectSelected()
|
||||||
|
displaySmeshObject(myEntry)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
TEST_selectAndExport_01()
|
TEST_selectAndExport_01()
|
||||||
TEST_selectAndExport_02()
|
TEST_selectAndExport_02()
|
||||||
|
TEST_display()
|
||||||
|
Loading…
Reference in New Issue
Block a user