rotate_coords

openpnm.topotools.rotate_coords(network, a=0, b=0, c=0, R=None)[source]

Rotates coordinates a given amount about each axis

Parameters
  • network (GenericNetwork) – The network whose pore coordinates should be transformed

  • a (scalar) – The amount in degrees to rotate about the x-axis

  • b (scalar) – The amount in degrees to rotate about the y-axis

  • c (scalar) – The amount in degrees to rotate about the z-axis

  • R (array_like) – Rotation matrix. Must be a 3-by-3 matrix since pore coordinates are always in 3D. If this is given then the other individual arguments are ignored.

See also

rotate_coords

Notes

It is possible to rotate about any of the three axes by specifying a, b, and/or c. In this case each rotation is applied in sequence.