Salome HOME
Merge from BR_plugins_pbyacs 03/04/2013
[plugins/netgenplugin.git] / doc / salome / gui / NETGENPLUGIN / input / netgenplugin_python_interface.doc
index f5f6ecd477f3f94810716d9a22b8580d63fba97b..29cf161dd3099d6429809c85188e23bfa910192d 100644 (file)
@@ -2,59 +2,17 @@
 
 \page netgenplugin_python_interface_page Python Interface
 
 
 \page netgenplugin_python_interface_page Python Interface
 
-Python package NETGENPluginDC defines several classes, destined for
+Python package NETGENPlugin defines several classes, destined for
 creation of the 2D and 3D meshes.
 
 NETGEN meshing plugin dynamically adds several methods to the
 creation of the 2D and 3D meshes.
 
 NETGEN meshing plugin dynamically adds several methods to the
-smesh.Mesh class to create meshing algorithms.
+ \ref SMESH_SWIG.smeshBuilder.Mesh "class Mesh" to create meshing algorithms.
 
 Below you can see an example of usage of the NETGENPlugin package for mesh generation:
 
 
 Below you can see an example of usage of the NETGENPlugin package for mesh generation:
 
-\code
-
-import geompy
-import smesh
-
-# create a box
-box = geompy.MakeBoxDXDYDZ(10., 10., 10.)
-geompy.addToStudy(box, "Box")
-
-
-# 1. Create a triangular 2D mesh on the box with NETGEN_1D2D algorithm
-triaN = smesh.Mesh(box, "Box : triangular mesh by NETGEN_1D2D")
-
-# create a Netgen_1D2D algorithm for solids
-algo2D = triaN.Triangle(smesh.NETGEN_1D2D)
-
-# define hypotheses
-n12_params = algo2D.Parameters()
-
-# define number of segments
-n12_params.SetNbSegPerEdge(19)
-
-# define max element
-n12_params.SetMaxSize(300)
-
-# 2. Create a tetrahedral mesh on the box with NETGEN_1D2D3D algorithm (full netgen)
-tetraN = smesh.Mesh(box, "Box : tetrahedrical mesh by NETGEN_1D2D3D")
-
-# create a Netgen_1D2D3D algorithm for solids
-algo3D = tetraN.Tetrahedron(smesh.FULL_NETGEN)
-
-# define hypotheses
-n123_params = algo3D.Parameters()
-
-# define number of segments
-n123_params.SetNbSegPerEdge(11)
-
-# define max element size
-n123_params.SetMaxSize(300)
-
-# compute the meshes
-triaN.Compute()
-tetraN.Compute()
-
-\endcode
+\anchor example_NETGENPlugin
+<h2>Example of 2d and 3d mesh generation with NETGEN:</h2>
+\tui_script{netgendemo.py}
 
 */
 
 
 */