MeshTransformation_rotate

dolfin.cpp.mesh.MeshTransformation_rotate(*args)

Overloaded versions

  • rotate(mesh, angle, axis)

    Rotate mesh around a coordinate axis through center of mass of all mesh vertices

    Arguments
    mesh (Mesh)

    The mesh.

    angle (float)

    The number of degrees (0-360) of rotation.

    axis (int)

    The coordinate axis around which to rotate the mesh.

  • rotate(mesh, angle, axis, p)

    Rotate mesh around a coordinate axis through a given point

    Arguments
    mesh (Mesh)

    The mesh.

    angle (float)

    The number of degrees (0-360) of rotation.

    axis (int)

    The coordinate axis around which to rotate the mesh.

    point (Point)

    The point around which to rotate the mesh.