Salome HOME
NPAL15716: Correct ThresholdID usage in filters criteria (ID instead of IOR).
[modules/smesh.git] / src / SMESH_SWIG / SMESH_fixation_netgen.py
index 9232f1a0d58ed8f1976ae7025040ae3ec1599787..585f431d23d794018e51a4d2eef3bfccfe208d39 100644 (file)
@@ -15,7 +15,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 #
 # Tetrahedrization of the geometry generated by the Python script
@@ -23,8 +23,6 @@
 # The new Netgen algorithm is used that discretizes baoundaries itself
 #
 
-import StdMeshers
-import NETGENPlugin
 import SMESH_fixation
 import smesh
 
@@ -50,12 +48,11 @@ print " check status ", status
 print "-------------------------- create Mesh, algorithm, hypothesis"
 
 mesh = smesh.Mesh(compshell, "MeshcompShel");
-netgen = mesh.Netgen(1)
-hyp = netgen.Parameters()
-hyp.SetMaxSize( 50 )
-#hyp.SetSecondOrder( 0 )
-hyp.SetFineness( 3 )
-#hyp.SetOptimize( 1 )
+netgen = mesh.Tetrahedron(smesh.FULL_NETGEN)
+netgen.SetMaxSize( 50 )
+#netgen.SetSecondOrder( 0 )
+netgen.SetFineness( smesh.Fine )
+#netgen.SetOptimize( 1 )
 
 salome.sg.updateObjBrowser(1)