MeshTransformation

class dolfin.cpp.mesh.MeshTransformation

Bases: object

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

static rescale()

Rescale mesh by a given scaling factor with respect to a center point.

Parameters:
  • & mesh (Mesh) – (Mesh ) The mesh
  • double scale (const) – (double) The scaling factor.
  • Point & center (const) – (Point ) The center of the scaling.
Return type:

void

static rotate()

Rotate mesh around a coordinate axis through a given point

Parameters:
  • & mesh (Mesh) – (Mesh ) The mesh.
  • angle (double) – (double) The number of degrees (0-360) of rotation.
  • axis (std::size_t) – (std::size_t) The coordinate axis around which to rotate the mesh.
  • Point & p (const) – (Point ) The point around which to rotate the mesh.
Return type:

void

static scale()

Scale mesh coordinates with given factor. Arguments mesh (Mesh ) The mesh factor (double) The factor defining the scaling.

Parameters:
  • & mesh (Mesh) –
  • factor (double) –
Return type:

void

thisown

The membership flag

static translate()

Translate mesh according to a given vector.

Parameters:
  • & mesh (Mesh) – (Mesh ) The mesh
  • Point & point (const) – (Point ) The vector defining the translation.
Return type:

void