#include <meshConverter.hh>
Public Member Functions | |
ConvertMeshQuads (Mesh2 &m, const uint level) | |
virtual uint | ncell () const |
Returns the number of cells in the mesh. | |
virtual Scan2 * | scan () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Mesh converter. Converts a mesh with triangles into a mesh with quadrilaterals only. Each triangle is split into three quads by joining the edge midpoints and the center of gravity.
If the attribute of a triangle which is subdivided is 0, the newly created middle vertex, the edges and the quads inherit the key of the triangle as attribute. Otherwise, they inherit the attribute of the triangle.
This class can handle triangular and quadrilateral input meshes. If a quad is met, there is nothing to do. At the moment, mixed meshes cannot be handled.
Definition at line 35 of file meshConverter.hh.
Constructor. Takes the original mesh m
and converts all triangles to quadrilaterals to build a new mesh
m | Original mesh |
level | Level in m which should be converted |
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Mesh.
Returns the number of cells in the mesh.
Implements concepts::Mesh.
Definition at line 45 of file meshConverter.hh.
Returns a scanner over the cells of the mesh.
Implements concepts::Mesh2.
Definition at line 46 of file meshConverter.hh.