pyvista.spherical_to_cartesian#

spherical_to_cartesian(r, phi, theta)[source]#

Convert Spherical coordinates to 3D Cartesian coordinates.

Parameters:
rnumpy.ndarray

Radial distance.

phinumpy.ndarray

Angle (radians) with respect to the polar axis. Also known as polar angle.

thetanumpy.ndarray

Angle (radians) of rotation from the initial meridian plane. Also known as azimuthal angle.

Returns:
numpy.ndarray, numpy.ndarray, numpy.ndarray

Cartesian coordinates.