Salome HOME
Review of reference documentation.
[modules/smesh.git] / doc / salome / gui / SMESH / input / define_mesh_by_script.doc
1 /*!
2
3 \page  use_existing_page Use Edges/Faces to be Created Manually"
4
5 The algorithms <b>Use Edges to be Created Manually</b> and <b>Use Faces to be Created Manually</b> allow  creating a 1D or a 2D mesh in a python script (using <em>AddNode, AddEdge</em> and <em>AddFace</em> commands) and then using such sub-meshes in the construction of a 2D or a 3D mesh. 
6
7 For example, you want to use standard algorithms to generate 1D and 3D
8 meshes and to create 2D mesh by your python code. For this, you
9 <ol>
10   <li> create a mesh object, assign a 1D algorithm,</li>
11   <li> invoke \b Compute command, which computes a 1D mesh,</li>
12   <li> assign <b>Use Faces to be Created Manually</b> and a 3D algorithm,</li>
13   <li> run your python code, which creates a 2D mesh,</li>
14   <li> invoke \b Compute command, which computes a 3D mesh.</li>
15 </ol>
16
17 \warning <b>Use Edges to be Created Manually</b> and <b>Use Faces to
18 be Created Manually</b> algorithms should be assigned _before_
19 mesh generation by the Python code.
20
21 Consider trying a sample script demonstrating the usage of 
22 \ref tui_use_existing_faces "Use Faces to be Created Manually"
23 algorithm for construction of a 2D mesh using Python commands.
24
25 \image html use_existing_face_sample_mesh.png
26 <em> Mesh computed by \ref tui_use_existing_faces "the sample script"
27   shown in a Shrink mode.</em>
28   
29 */