10 .. _tuiquadsrevolutionuniform:
12 Uniform Quad Revolution
13 =======================
15 To make a uniform quad revolution you need:
17 - *quad* : the quadrangle from which hexahedrons will be created (only for one quad revolution).
18 - *quads* : a set of quadrangles from which hexahedrons will be created (only for multiple quads revolution).
19 - *center* : center of rotation (a vertex).
20 - *axis* : axis of rotation (a vector).
21 - *angle* : Specify the rotation's angle at each step.
22 - *nbLayers*: the number of steps.
26 elts = doc.revolutionQuadUni(quad, center, axis, angle, nbLayers)
28 Revolution of a set of quads::
30 elts = doc.revolutionQuadsUni(quads, center, axis, angle, nbLayers)
33 GUI command: :ref:`guiquadsrevolutionuniform`
36 .. _tuiquadsrevolutioncustom:
38 Custom Quad Revolution
39 ======================
41 To make a custom quad revolution you need:
43 - *quad* : the quadrangle from which hexahedrons will be created (only for one quad revolution).
44 - *quads* : a set of quadrangles from which hexahedrons will be created (only for multiple quads revolution).
45 - *center* : center of rotation (a vertex).
46 - *axis* : axis of rotation (a vector).
47 - *angles* : a set of angles (in degrees). Specify the rotation's angle at each step.
51 elts = doc.revolutionQuad(quad, center, axis, angles)
53 Revolution of a set of quads::
55 elts = doc.revolutionQuads(quads, center, axis, angles)
58 GUI command: :ref:`guiquadsrevolutioncustom`
60 Operations on *elts*: :ref:`tuielements2`
66 .. literalinclude:: test_doc/quadRevolution/revolution_quad.py