7 ==========================
8 Prism and join quadrangles
9 ==========================
11 There are two different methods to build hexahedra from quadrangles:
13 - prism from quadrangles
14 - join two sets of quadrangles
19 Prism from a quadrangle or quadrangles
20 ======================================
22 Make a regular prism::
24 elts = doc.prismQuad(quad, vec, nb)
26 elts = doc.prismQuads(quads_list, vec, nb)
29 Make an irregular prism::
31 elts = doc.prismQuadsVec (quads_list, axis, heights, opt)
33 Operations on *elts*: :ref:`tuielements2`
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.
42 Example (regular mode)
43 ----------------------
45 .. literalinclude:: test_doc/prism_quad_join/prism_quads.py
48 .. image:: _static/prisme.png
55 Example (regular mode)
56 ----------------------
58 .. literalinclude:: test_doc/prism_quad_join/prism_quads_vec.py
61 .. image:: _static/irregular_prism.png
71 Join 2 sets of quadrangles
72 ==========================
76 elts = doc.joinQuad(qa, qb, va1, vb1, va2, vb2, nb)
78 elts = doc.joinQuads([ qa1, qa2 ], qb, va1, vb1, va2, vb2, nb)
80 Operations on *elts*: :ref:`tuielements2`
86 .. literalinclude:: test_doc/prism_quad_join/join_quads.py
90 .. image:: _static/join.png
97 GUI command: :ref:`guiprismjoinquad`