MeshTransformation.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
MeshTransformation
¶ This class implements various transformations of the coordinates of a mesh.
-
static void
translate
(Mesh &mesh, const Point &point)¶ Translate mesh according to a given vector.
- Arguments
- mesh (
Mesh
) - The mesh
- point (Point)
- The vector defining the translation.
- mesh (
-
static void
rotate
(Mesh &mesh, double angle, std::size_t axis)¶ Rotate mesh around a coordinate axis through center of mass of all mesh vertices
- Arguments
- mesh (
Mesh
) - The mesh.
- angle (double)
- The number of degrees (0-360) of rotation.
- axis (std::size_t)
- The coordinate axis around which to rotate the mesh.
- mesh (
-
static void