MeshTransformation

class dolfin.cpp.mesh.MeshTransformation

Bases: object

This class implements various transformations of the coordinates of a mesh.

static 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.

thisown

The membership flag

static translate(*args)

Translate mesh according to a given vector.

Arguments
mesh (Mesh)
The mesh
point (Point)
The vector defining the translation.