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 m = smesh.Mesh(cylinder)
36 algo2d = m.Triangle(smesh.BLSURF)
38 algo2d.SetPhysicalMesh(1)
41 algo2d.SetGeometricMesh(0)
46 algo3d = m.Tetrahedron(smesh.GHS3DPRL)
48 algo3d.SetMEDName(results)
50 algo3d.SetBackground(False)
51 algo3d.SetKeepFiles(False)
52 algo3d.SetToMeshHoles(True)
62 if os.access(results+".xml", os.F_OK):