pysdic.create_2d_triangle_3_rectangle#

create_2d_triangle_3_rectangle(*, x_bounds=None, y_bounds=None, x_array=None, y_array=None, n_x=None, n_y=None, direct=True, diagonal='first', seed=None, uv_layout=0)[source]#

Create a 2D triangle_3 mesh (\(E = 2\)) of a rectangular grid.

The quadrangle_4 mesh of pysdic.create_2d_quadrangle_4_rectangle() is split into triangles with pysdic.quadrangle_4_to_triangle_3() (the quadrangle \(q\) gives the triangles \(2q\) and \(2q + 1\)). The vertices are the same.

Parameters:
Returns:

The 2D triangle_3 mesh, with a UV map.

Return type:

pysdic.Mesh