7 box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
8 idbox = geompy.addToStudy(box, "box")
11 tetra = smesh.Mesh(box, "MeshBox")
13 algo1D = tetra.Segment()
14 algo1D.NumberOfSegments(7)
16 algo2D = tetra.Triangle()
17 algo2D.MaxElementArea(800.)
19 algo3D = tetra.Tetrahedron()
20 algo3D.MaxElementVolume(900.)
25 # export the mesh in a MED file
26 tetra.ExportMED("/tmp/meshMED.med", 0)
28 # export a group in a MED file
29 face = geompy.SubShapeAll( box, geompy.ShapeType["FACE"])[0] # a box side
30 group = tetra.GroupOnGeom( face, "face group" ) # group of 2D elements on the <face>
31 tetra.ExportMED("/tmp/groupMED.med", meshPart=group)