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_3mesh (\(E = 2\)) of a rectangular grid.The
quadrangle_4mesh ofpysdic.create_2d_quadrangle_4_rectangle()is split into triangles withpysdic.quadrangle_4_to_triangle_3()(the quadrangle \(q\) gives the triangles \(2q\) and \(2q + 1\)). The vertices are the same.- Parameters:
x_bounds (Tuple[Real, Real] | None) – See
pysdic.create_2d_quadrangle_4_rectangle().y_bounds (Tuple[Real, Real] | None) – See
pysdic.create_2d_quadrangle_4_rectangle().x_array (_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | None) – See
pysdic.create_2d_quadrangle_4_rectangle().y_array (_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | None) – See
pysdic.create_2d_quadrangle_4_rectangle().n_x (Integral | None) – See
pysdic.create_2d_quadrangle_4_rectangle().n_y (Integral | None) – See
pysdic.create_2d_quadrangle_4_rectangle().direct (bool) – See
pysdic.create_2d_quadrangle_4_rectangle().uv_layout (Integral) – See
pysdic.create_2d_quadrangle_4_rectangle().diagonal (str, optional (default:
"first")) – The diagonal used to split the quadrangles:"first","second","alternate"or"random".seed (Optional[Union[Integral, numpy.random.Generator]], optional (default:
None)) – The seed ofdiagonal="random".
- Returns:
The 2D
triangle_3mesh, with a UV map.- Return type: