1 # -*- coding: iso-8859-1 -*-
2 # CEA/LGLS 2008, Christian Van Wambeke (CEA/LGLS), Francis KLOSS (OCC)
3 # ====================================================================
21 base = geompy.MakeVertex(0, 0, 0)
22 direction = geompy.MakeVectorDXDYDZ(0, 0, 1)
24 cylinder = geompy.MakeCylinder(base, direction, radius, height)
26 geompy.addToStudy(cylinder, "Cylinder")
28 # Define a mesh on a geometry
29 # ---------------------------
31 smesh.SetCurrentStudy(salome.myStudy)
33 m = smesh.Mesh(cylinder)
38 algo2d = m.Triangle(smesh.BLSURF)
40 algo2d.SetPhysicalMesh(1)
43 algo2d.SetGeometricMesh(0)
48 algo3d = m.Tetrahedron(smesh.GHS3DPRL)
50 algo3d.SetMEDName(results)
52 algo3d.SetBackground(False)
53 algo3d.SetKeepFiles(False)
54 algo3d.SetToMeshHoles(True)
64 if os.access(results+".xml", os.F_OK):