9 Manage the hexahedral of the document.
12 Add an hexahedron in the document::
14 hexa_1 = doc.addHexa(q_A, q_B, q_C, q_D, q_E, q_F)
16 hexa_2 = doc.addHexaVertices(ACE, ACF, ADE, ADF, BCE, BCF, BDE, DBF)
18 Notice: the arguments follow the convention explain in :ref:`annexe`
20 Get the number of all hexahedra of the document::
22 sum_a = doc.countHexa()
24 Get an hexahedron of the document::
26 hexa_i = doc.getHexa(i)
28 Get a vertex of an hexahedron::
30 vertex_i = hexa_i.getVertex(i)
32 Get an edge of an hexahedron::
34 edge_i = hexa_i.getEdge(i)
36 Get a quad of an hexahedron::
38 quad_i = hexa_i.getQuad(i)
40 Get the number of used hexahedrons in the model of blocks::
42 nb_used_hexa = doc.countUsedHexa()
44 Get the hexahedrons used by the model of blocks
46 .. literalinclude:: test_doc/hexa/hexa.py
48 Find an hexahedron in the document::
50 hexa = doc.findHexa(vertex_1, vertex_2)
52 Add an hexahedron with 5 quads::
54 doc.addHexa5Quads (qa, qc, qd, qe, qf)
56 Add an hexahedron with 4 quads::
58 doc.addHexa4Quads (qa, qd, qe, qf)
60 Add an hexahedron with 3 quads::
62 doc.addHexa3Quads (qa, qd, qe)
64 Add an hexahedron with 2 quads::
66 doc.addHexa2Quads (qa, qb)
68 More operations: *Hexa* inherits :ref:`Element <tuielement>`.
70 GUI command: :ref:`guihexahedron`