Transformations

Transformations#

The Transform class describes linear transformations and is accepted wherever a transformation is used, such as transform(). The functions on this page transform points and vectors directly.

Transform(*args, **kwargs)

Describes linear transformations via a 4x4 matrix.

core.utilities.axis_rotation(points, angle)

Rotate points by angle about an axis.

See also

Rotations

Rotate a mesh about an axis.

Register a Surface With ICP

Align two surfaces with an iterative closest point transform.

transform()

Transform an actor instead of its mesh.

Spherical Coordinates#

cartesian_to_spherical(x, y, z)

Convert 3D Cartesian coordinates to spherical coordinates.

grid_from_sph_coords(theta, phi, r)

Create a structured grid from arrays of spherical coordinates.

spherical_to_cartesian(r, phi, theta)

Convert Spherical coordinates to 3D Cartesian coordinates.

transform_vectors_sph_to_cart(theta, phi, r, ...)

Transform vectors from spherical (r, phi, theta) to Cartesian coordinates (z, y, x).

See also

Plot Data in Spherical Coordinates

Plot data in spherical coordinates.

Create Sphere Mesh Multiple Ways

Build a sphere from spherical coordinates.