From: mpa Date: Tue, 19 Nov 2013 10:53:23 +0000 (+0000) Subject: - Modifing Geometry and Mesh Python scripts from SALOME 6 and before X-Git-Tag: V7_3_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=618841dd83b166216fa5b6506421cf63a1f9c1b3;p=plugins%2Fghs3dprlplugin.git - Modifing Geometry and Mesh Python scripts from SALOME 6 and before --- diff --git a/doc/salome/gui/GHS3DPRLPLUGIN/input/ghs3dprl_hypo.doc b/doc/salome/gui/GHS3DPRLPLUGIN/input/ghs3dprl_hypo.doc index a7f69df..83fe233 100644 --- a/doc/salome/gui/GHS3DPRLPLUGIN/input/ghs3dprl_hypo.doc +++ b/doc/salome/gui/GHS3DPRLPLUGIN/input/ghs3dprl_hypo.doc @@ -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)