Loading...
Searching...
No Matches
MeshTransformation.h
// Copyright (C) 2012-2016 Anders Logg
//
// This file is part of DOLFIN.
//
// DOLFIN is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// DOLFIN is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
//
// First added: 2012-01-16
// Last changed: 2016-05-03
#ifndef __MESH_TRANSFORMATION_H
#define __MESH_TRANSFORMATION_H
namespace dolfin
{
class Mesh;
class Point;
class MeshTransformation
{
public:
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& center);
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);
};
}
#endif
dolfin::MeshTransformation
Definition MeshTransformation.h:34
dolfin::MeshTransformation::rotate
static void rotate(Mesh &mesh, double angle, std::size_t axis)
Definition MeshTransformation.cpp:89
dolfin::MeshTransformation::scale
static void scale(Mesh &mesh, double factor)
Definition MeshTransformation.cpp:28
dolfin::MeshTransformation::rescale
static void rescale(Mesh &mesh, const double scale, const Point &center)
Definition MeshTransformation.cpp:64
dolfin::MeshTransformation::translate
static void translate(Mesh &mesh, const Point &point)
Definition MeshTransformation.cpp:44
dolfin::Mesh
Definition Mesh.h:84
dolfin::Point
Definition Point.h:41
dolfin
Definition adapt.h:30