10 .. _tuicartgridsimple:
15 To add a simple cartesian grid to the model, the following data are required:
17 - *nb X*: The number of hexahedra along the X axis
18 - *nb Y*: The number of hexahedra along the Y axis
19 - *nb Z*: The number of hexahedra along the Z axis
22 Make a Simple Cartesian Grid::
24 elts = doc.makeCartesianTop(nbX, nbY, nbZ)
26 GUI command: :ref:`guicartgridsimple`
29 .. _tuicartgriduniform:
31 Uniform Cartesian Grid
32 ======================
34 To add a uniform cartesian grid to the model, the following data are required:
36 - *origin*: The vertex of the origin
37 - *vec X* : The X vector
38 - *vec Y* : The Y vector
39 - *vec Z* : The Z vector
40 - *len X* : The length of an hexahedra on the X axis
41 - *len Y* : The length of an hexahedra on the Y axis
42 - *len Z* : The length of an hexahedra on the Z axis
43 - *nb X* : The number of hexahedra on the X axis
44 - *nb Y* : The number of hexahedra on the Y axis
45 - *nb Z* : The number of hexahedra on the Z axis
47 Make a Uniform Cartesian Grid::
49 elts = doc.makeCartesianUni(orig, vecX, vecY, vecZ, lenX, lenY, lenZ, nbX, nbY, nbZ)
51 GUI command: :ref:`guicartgriduniform`
54 .. _tuicartgridcustom:
59 To add a custom cartesian grid to the model, the following data are required:
61 - *origin*: The vertex of the origin
62 - *vec X* : The X vector
63 - *vec Y* : The Y vector
64 - *vec Z* : The Z vector
65 - *tx* : A list of x coordinates in ascendant order
66 - *ty* : A list of y coordinates in ascendant order
67 - *tz* : A list of z coordinates in ascendant order
69 Make a Custom Cartesian Grid::
71 elts = doc.makeCartesian(orig, vecX, vecY, vecZ, tx, ty, tz)
73 GUI command: :ref:`guicartgridcustom`
76 Operations on *elts*: :ref:`tuielements2`
82 .. literalinclude:: test_doc/cartesian_grid/cartesian_grid.py