Personal tools
You are here: Home Forum How to use Salome? TUI to Activate MESH module

TUI to Activate MESH module

Up to How to use Salome?
  • TUI to Activate MESH module

    Posted by pichon at January 17. 2007
    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
    • Re: TUI to Activate MESH module

      Posted by Erwan ADAM at January 17. 2007
      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.
      • Re: TUI to Activate MESH module

        Posted by pichon at January 20. 2007
        Hi,
        There are 2 files, not 3:
        SMESHGUI_Swig.cxx
        SMESHGUI_Swig.i

        Is it o.k.?
Powered by Ploneboard
Document Actions