-# Use 3D extrusion meshing algorithm
+# Usage of Extrusion 3D meshing algorithm
-import salome, smesh, SMESH, geompy
+import salome
+salome.salome_init_without_session()
-salome.salome_init()
-smesh.SetCurrentStudy( salome.myStudy )
+from salome.geom import geomBuilder
+geompy = geomBuilder.New()
+
+import SMESH
+from salome.smesh import smeshBuilder
+smesh = smeshBuilder.New()
OX = geompy.MakeVectorDXDYDZ(1,0,0)
OY = geompy.MakeVectorDXDYDZ(0,1,0)
# assign Global hypotheses
-# 1D algorithm and hypothesis for vertical division
+# 1D algorithm and hypothesis for division along the pipe
mesh.Segment().NumberOfSegments(15)
# Extrusion 3D algo