MeshTransformation.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
static void
scale
(Mesh &mesh, double factor)¶ Scale mesh coordinates with given factor.
- Arguments
- mesh (
Mesh
) - The mesh
- factor (double)
- The factor defining the scaling.
- mesh (
-
static void
translate
(Mesh &mesh, const Point &point)¶ Translate mesh according to a given vector.
- @param mesh (Mesh)
- The mesh
- @param point (Point)
- The vector defining the translation.
-
static void
rescale
(Mesh &mesh, const double scale, const Point ¢er)¶ Rescale mesh by a given scaling factor with respect to a center point.
- @param mesh (Mesh)
- The mesh
- @param scale (double)
- The scaling factor.
- @param center (Point)
- The center of the scaling.
-
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
- @param mesh (Mesh)
- The mesh.
- @param angle (double)
- The number of degrees (0-360) of rotation.
- @param axis (std::size_t)
- The coordinate axis around which to rotate the mesh.
-
static void
rotate
(Mesh &mesh, double angle, std::size_t axis, const Point &p)¶ Rotate mesh around a coordinate axis through a given point
- @param mesh (Mesh)
- The mesh.
- @param angle (double)
- The number of degrees (0-360) of rotation.
- @param axis (std::size_t)
- The coordinate axis around which to rotate the mesh.
- @param p (Point)
- The point around which to rotate the mesh.