- openpnm.topotools.rotate_coords(network, a=0, b=0, c=0, R=None)¶
Rotates coordinates a given amount about each axis
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.
It is possible to rotate about any of the three axes by specifying
c. In this case each rotation is applied in sequence.