TUI to Activate MESH module
-
Hi,
Is it possible to activate mesh module from python script,
and to display the mesh.
The script is loaded from SALOME module,
it creates Geometry and Mesh.
I would like to display mesh at the end of it.
I do it manually in Object Browser: Activate Module, Display
Thank you-
pichon wrote:
Hi,
Is it possible to activate mesh module from python script,
and to display the mesh.
The script is loaded from SALOME module,
it creates Geometry and Mesh.
I would like to display mesh at the end of it.
I do it manually in Object Browser: Activate Module, Display
Thank you
I've done a patch for that (integrated in CVS). Two files are modified
(the third one is touched only for dependency reasons).
You can download them on ftp.cea.fr under /incoming/y2k01/adam
(login : "ftp", passwd : "email adress"
.
To untar the file, go to SMESH_SRC, then cd ..
tar zxvf SMESH_display_python.tgz
Then go to the directory where you have build SMESH and
make then make install
To use the functionnality :
from salome import ImportComponentGUI
gg = ImportComponentGUI("SMESH"
gg.CreateAndDisplayActor(the_entry)
You need the entry of your mesh (a string
like "0:2:1:3"
Regards,
E.A.
-
Powered by
Ploneboard
