Salome HOME
- Modifing Geometry and Mesh Python scripts from SALOME 6 and before V7_3_0a1
authormpa <mpa@opencascade.com>
Tue, 19 Nov 2013 10:53:23 +0000 (10:53 +0000)
committermpa <mpa@opencascade.com>
Tue, 19 Nov 2013 10:53:23 +0000 (10:53 +0000)
doc/salome/gui/GHS3DPRLPLUGIN/input/ghs3dprl_hypo.doc

index a7f69dfc82c2de5129847ae1627beef252381da5..83fe2337dc810ea5dc090e6394bf46c69a478b67 100644 (file)
@@ -403,8 +403,13 @@ cp -f $IN_FILES* $IN_DIR
 #!/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
 # ----------
@@ -432,7 +437,7 @@ m = smesh.Mesh(cylinder)
 # 2D mesh with BLSURF
 # -------------------
 
-algo2d = m.Triangle(smesh.BLSURF)
+algo2d = m.Triangle(smeshBuilder.BLSURF)
 
 algo2d.SetPhysicalMesh(1)
 algo2d.SetPhySize(5)
@@ -442,7 +447,7 @@ algo2d.SetGeometricMesh(0)
 # 3D mesh with tepal
 # ------------------
 
-algo3d = m.Tetrahedron(smesh.GHS3DPRL)
+algo3d = m.Tetrahedron(smeshBuilder.GHS3DPRL)
 
 algo3d.SetMEDName(results)
 algo3d.SetNbPart(4)