discretize.TensorMesh.orientation#

property TensorMesh.orientation#

Rotation matrix defining mesh axes relative to Cartesian.

This property returns a rotation matrix between the local coordinate axes of the mesh and the standard Cartesian axes. For a 3D mesh, this would define the x, y and z axes of the mesh relative to the Easting, Northing and elevation directions. The orientation property can be used to transform locations from a local coordinate system to a conventional Cartesian system. By default, orientation is an identity matrix of shape (mesh.dim, mesh.dim).

Returns:
(dim, dim) numpy.ndarray of float

Square rotation matrix defining orientation

Examples

For a visual example of this, please see the figure in the docs for InterfaceVTK.