2 # -*- coding: iso-8859-1 -*-
3 # CEA/LGLS 2008, Christian Van Wambeke (CEA/LGLS), Francis KLOSS (OCC)
4 # ====================================================================
22 base = geompy.MakeVertex(0, 0, 0)
23 direction = geompy.MakeVectorDXDYDZ(0, 0, 1)
25 cylinder = geompy.MakeCylinder(base, direction, radius, height)
27 geompy.addToStudy(cylinder, "Cylinder")
29 # Define a mesh on a geometry
30 # ---------------------------
32 m = smesh.Mesh(cylinder)
37 algo2d = m.Triangle(smesh.BLSURF)
39 algo2d.SetPhysicalMesh(1)
42 algo2d.SetGeometricMesh(0)
47 algo3d = m.Tetrahedron(smesh.GHS3DPRL)
49 algo3d.SetMEDName(results)
51 algo3d.SetBackground(False)
52 algo3d.SetKeepFiles(False)
53 algo3d.SetToMeshHoles(True)
63 if os.access(results+".xml", os.F_OK):