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_3mesh of a cylindrical surface with radius \(r = f(h, \theta)\).The
quadrangle_4mesh ofpysdic.create_3d_quadrangle_4_cylindrical()is split into triangles withpysdic.quadrangle_4_to_triangle_3().If
stickis True, the vertices on the axis (radius lower thanstick_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 ofpysdic.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:
function (Optional[Callable[[numpy.ndarray, numpy.ndarray], ArrayLike]]) – See
pysdic.create_3d_quadrangle_4_cylindrical().frame (Optional[py3dframe.Frame]) – See
pysdic.create_3d_quadrangle_4_cylindrical().t_bounds (Optional[Tuple[Real, Real]]) – See
pysdic.create_3d_quadrangle_4_cylindrical().h_bounds (Optional[Tuple[Real, Real]]) – See
pysdic.create_3d_quadrangle_4_cylindrical().t_array (Optional[ArrayLike]) – See
pysdic.create_3d_quadrangle_4_cylindrical().h_array (Optional[ArrayLike]) – See
pysdic.create_3d_quadrangle_4_cylindrical().n_t (Optional[Integral]) – See
pysdic.create_3d_quadrangle_4_cylindrical().n_h (Optional[Integral]) – See
pysdic.create_3d_quadrangle_4_cylindrical().direct (bool) – See
pysdic.create_3d_quadrangle_4_cylindrical().close (bool) – See
pysdic.create_3d_quadrangle_4_cylindrical().uv_layout (Integral) – See
pysdic.create_3d_quadrangle_4_cylindrical().stick (bool, optional (default:
False)) – If True, the vertices on the axis are merged (see above).stick_eps (Real, optional (default:
1e-6)) – The radius below which a vertex is on the axis (non-negative).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
triangle_3mesh, with a UV map.- Return type: