#!/bin/python
import os
-import geompy
-import smesh
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New(salome.myStudy)
+
+import SMESH
+from salome.smesh import smeshBuilder
+smesh = smeshBuilder.New(salome.myStudy)
# Parameters
# ----------
# 2D mesh with BLSURF
# -------------------
-algo2d = m.Triangle(smesh.BLSURF)
+algo2d = m.Triangle(smeshBuilder.BLSURF)
algo2d.SetPhysicalMesh(1)
algo2d.SetPhySize(5)
# 3D mesh with tepal
# ------------------
-algo3d = m.Tetrahedron(smesh.GHS3DPRL)
+algo3d = m.Tetrahedron(smeshBuilder.GHS3DPRL)
algo3d.SetMEDName(results)
algo3d.SetNbPart(4)