Salome HOME
92413e4963472bc3b986266b3af03174e93a04ab
[modules/smesh.git] / doc / salome / gui / SMESH / input / quad_from_ma_algo.rst
1 .. _quad_from_ma_algo_page:
2
3 ***************************************************
4 Medial Axis Projection Quadrangle meshing algorithm
5 ***************************************************
6
7 Medial Axis Projection algorithm can be used for meshing faces with
8 sinuous borders and a channel-like shape, for which it can be
9 difficult to define 1D hypotheses such that to obtain a good shape of
10 resulting quadrangles. The algorithm can be also applied to faces with ring
11 topology, which can be viewed as a closed 'channel'. In the latter
12 case radial discretization of a ring can be specified by
13 using *Number of Layers* or *Distribution of Layers*
14 hypothesis.
15
16 .. image:: ../images/quad_from_ma_mesh.png 
17         :align: center
18
19 .. centered::
20         A mesh of a river model to the left and of a ring-face to the right
21
22 The algorithm provides proper shape of quadrangles by constructing Medial
23 Axis between sinuous borders of the face and using it to
24 discretize the borders. (Shape of quadrangles can be not perfect at
25 locations where opposite sides of a 'channel' are far from being parallel.)
26
27 .. image:: ../images/quad_from_ma_medial_axis.png 
28         :align: center
29
30 .. centered::
31         Medial Axis between two blue sinuous borders
32
33 The Medial Axis is used in two ways:
34
35 #. If there is a sub-mesh on a sinuous border, then the nodes of this border are mapped to the opposite border via the Medial Axis.
36 #. If there are no sub-meshes on sinuous borders, then the part of the Medial Axis that can be mapped to both borders is discretized using a 1D hypothesis assigned to the face or its ancestor shapes, and the division points are mapped from the Medial Axis to both borders to find positions of nodes.
37
38 .. image:: ../images/quad_from_ma_ring_mesh.png 
39         :align: center
40
41 .. centered::
42         Mesh depends on defined sub-meshes: to the left - sub-meshes on both wires, to the right - a sub-mesh on internal wire only