Salome HOME
Merge from BR_plugins_pbyacs 03/04/2013
[modules/smesh.git] / src / SMESH_SWIG / SMESH_fixation_netgen.py
index fd644d519e95e78d6976d9d040b596a9a3901079..d6f38cbc0c5a42a6de7871b4da6f31865a3e14f9 100644 (file)
 # The new Netgen algorithm is used that discretizes baoundaries itself
 #
 import SMESH_fixation
-import smesh
+
+import SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+smesh =  smeshBuilder.New(salome.myStudy)
 
 compshell = SMESH_fixation.compshell
 idcomp = SMESH_fixation.idcomp
@@ -51,10 +54,10 @@ smesh.SetCurrentStudy(salome.myStudy)
 print "-------------------------- create Mesh, algorithm, hypothesis"
 
 mesh = smesh.Mesh(compshell, "MeshcompShel");
-netgen = mesh.Tetrahedron(smesh.FULL_NETGEN)
+netgen = mesh.Tetrahedron(smeshBuilder.FULL_NETGEN)
 netgen.SetMaxSize( 50 )
 #netgen.SetSecondOrder( 0 )
-netgen.SetFineness( smesh.Fine )
+netgen.SetFineness( smeshBuilder.Fine )
 #netgen.SetOptimize( 1 )
 
 salome.sg.updateObjBrowser(1)