DOLFIN
DOLFIN C++ interface
|
#include <MeshTransformation.h>
Static Public Member Functions | |
static void | scale (Mesh &mesh, double factor) |
static void | translate (Mesh &mesh, const Point &point) |
static void | rescale (Mesh &mesh, const double scale, const Point ¢er) |
static void | rotate (Mesh &mesh, double angle, std::size_t axis) |
static void | rotate (Mesh &mesh, double angle, std::size_t axis, const Point &p) |
This class implements various transformations of the coordinates of a mesh.
|
static |
Rotate mesh around a coordinate axis through center of mass of all mesh vertices
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. |
|
static |
Scale mesh coordinates with given factor.
Arguments mesh (Mesh) The mesh factor (double) The factor defining the scaling.