Salome HOME
0020743: EDF 1271 SMESH : Create a mesh from a group / export, FindElementByPoint...
[modules/smesh.git] / doc / salome / gui / SMESH / input / tui_creating_meshes.doc
index bad32ebf42a901e87ec65b679b87057aee53ecd3..220e63c8a2b61e72ad03bfdf3fc2894e14a839b6 100644 (file)
@@ -231,6 +231,11 @@ tetra.Compute()
 
 # export the mesh in a MED file
 tetra.ExportMED("/tmp/meshMED.med", 0)
+
+# export a group in a MED file
+face = geompy.SubShapeAll( box, geompy.ShapeType["FACE"])[0] # a box side
+group = tetra.GroupOnGeom( face, "face group" ) # group of 2D elements on the <face>
+tetra.ExportMED("/tmp/groupMED.med", meshPart=group)
 \endcode
 
 <br>
@@ -270,7 +275,7 @@ fGroup = mesh.GroupOnGeom( face, "2D on face")
 nGroup = mesh.GroupOnGeom( face, "nodes on face", NODE)
 subMesh = localAlgo.GetSubMesh()
 
-# make a new mesh by copying different part of the mesh
+# make a new mesh by copying different parts of the mesh
 
 # 1. copy the whole mesh
 newMesh = CopyMesh( mesh, "whole mesh copy")