pysdic.create_3d_triangle_3_cylindrical#

create_3d_triangle_3_cylindrical(function=None, *, frame=None, t_bounds=None, h_bounds=None, t_array=None, h_array=None, n_t=None, n_h=None, direct=True, close=False, stick=False, stick_eps=1e-06, diagonal='first', seed=None, uv_layout=0)[source]#

Create a 3D triangle_3 mesh of a cylindrical surface with radius \(r = f(h, \theta)\).

The quadrangle_4 mesh of pysdic.create_3d_quadrangle_4_cylindrical() is split into triangles with pysdic.quadrangle_4_to_triangle_3().

If stick is True, the vertices on the axis (radius lower than stick_eps) are merged: at each height, they are replaced by a single vertex on the axis. The triangles that become degenerated are removed, and the unused vertices too, so the indexing of the vertices of pysdic.create_3d_quadrangle_4_cylindrical() is no longer valid. Use it to close the ends of a surface of revolution (e.g. a sphere with \(f(h) = \sqrt{1 - h^2}\) and \(h \in [-1, 1]\)).

Parameters:
Returns:

The triangle_3 mesh, with a UV map.

Return type:

pysdic.Mesh