pysdic.create_3d_triangle_3_heightmap#

create_3d_triangle_3_heightmap(function=None, *, frame=None, 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 3D triangle_3 mesh of a height surface \(z = f(x, y)\).

The quadrangle_4 mesh of pysdic.create_3d_quadrangle_4_heightmap() 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 triangle_3 mesh, with a UV map.

Return type:

pysdic.Mesh