1 # CEA/LGLS 2008, Christian Van Wambeke (CEA/LGLS), Francis KLOSS (OCC)
2 # ====================================================================
20 base = geompy.MakeVertex(0, 0, 0)
21 direction = geompy.MakeVectorDXDYDZ(0, 0, 1)
23 cylinder = geompy.MakeCylinder(base, direction, radius, height)
25 geompy.addToStudy(cylinder, "Cylinder")
27 # Define a mesh on a geometry
28 # ---------------------------
30 m = smesh.Mesh(cylinder)
35 algo2d = m.Triangle(smesh.BLSURF)
37 algo2d.SetPhysicalMesh(1)
40 algo2d.SetGeometricMesh(0)
45 algo3d = m.Tetrahedron(smesh.GHS3DPRL)
47 algo3d.SetMEDName(results)
49 algo3d.SetBackground(False)
50 algo3d.SetKeepFiles(False)
51 algo3d.SetToMeshHoles(True)
61 if os.access(results+".xml", os.F_OK):