1 # Maximum Element Volume
7 cyl = geompy.MakeCylinderRH(30., 50.)
8 geompy.addToStudy(cyl, "cyl")
10 # create a mesh on the cylinder
11 tetra = smesh.Mesh(cyl, "Cylinder : tetrahedrical mesh")
14 algo1D = tetra.Segment()
15 algo2D = tetra.Triangle()
16 algo3D = tetra.Tetrahedron()
18 # assign 1D and 2D hypotheses
19 algo1D.NumberOfSegments(7)
20 algo2D.MaxElementArea(150.)
22 # assign Max Element Volume hypothesis
23 algo3D.MaxElementVolume(200.)
28 print "probleme when computing the mesh"
30 print "Computation succeded"