]> SALOME platform Git repositories - modules/hexablock.git/blob - doc/tui_prism_join_quad.rst
Salome HOME
Merge from V6_main 13/12/2012
[modules/hexablock.git] / doc / tui_prism_join_quad.rst
1 :tocdepth: 3
2
3
4 .. _tuiprismjoinquad:
5
6
7 ========================== 
8 Prism and join quadrangles
9 ==========================
10
11 There are two different methods to build hexahedra from quadrangles:
12
13 - prism from quadrangles
14 - join two sets of quadrangles
15
16
17 .. _tuiprismquad:
18
19 Prism from a quadrangle or quadrangles
20 ======================================
21
22 Make a regular prism::
23
24     elts = doc.prismQuad(quad, vec, nb)
25
26     elts = doc.prismQuads(quads_list, vec, nb)
27     
28     
29 Make an irregular prism::
30
31         elts = doc.prismQuadsVec (quads_list, axis, heights, opt)
32
33 Operations on *elts*: :ref:`tuielements2`
34
35
36 From a list of quadrangles, a set of hexahedra is created. Given the
37 arbitrary nature of the start list, we can not provide additional
38 information on the order of the intermediate elements (vertices,
39 edges, quads) that contains the container-like Elements.
40
41
42 Example (regular mode)
43 ----------------------
44
45 .. literalinclude:: test_doc/prism_quad_join/prism_quads.py
46    :linenos:
47
48 .. image:: _static/prisme.png
49    :align: center
50
51 .. centered::
52    Regular Prism Quads
53
54
55 Example (regular mode)
56 ----------------------
57
58 .. literalinclude:: test_doc/prism_quad_join/prism_quads_vec.py
59    :linenos:
60
61 .. image:: _static/irregular_prism.png
62    :align: center
63
64 .. centered::
65    Irregular Prism Quads
66
67
68
69 .. _tuijoinquad:
70
71 Join 2 sets of quadrangles
72 ==========================
73
74 ::
75
76     elts = doc.joinQuad(qa, qb, va1, vb1, va2, vb2, nb)
77
78     elts = doc.joinQuads([ qa1, qa2 ], qb, va1, vb1, va2, vb2, nb)
79
80 Operations on *elts*: :ref:`tuielements2`
81
82
83 Example
84 -------
85
86 .. literalinclude:: test_doc/prism_quad_join/join_quads.py
87    :linenos:
88
89
90 .. image:: _static/join.png
91    :align: center
92
93 .. centered::
94    Join Quads
95
96
97 GUI command: :ref:`guiprismjoinquad`