Salome HOME
optparse => argparse
[modules/hexablock.git] / doc / tui_mesh.rst
1 :tocdepth: 3
2
3 .. _tuimesh:
4
5
6 =================
7 Generate the mesh
8 =================
9
10 Use the SMESH component of SALOME::
11
12     import smesh
13     m = hexablock.mesh(name, doc)
14
15 Export to a MED file::
16
17     m.ExportMED("/tmp/mesh.med")
18
19 Get some information about the mesh::
20
21     print "Number of hexahedra: ", m.NbHexas()
22     print "Number of quadrangles: ", m.NbQuadrangles()
23     print "Number of segments: ", m.NbEdges()
24     print "Number of nodes: ", m.NbNodes()
25
26 GUI command: :ref:`guimesh`