Class documentation of Concepts

Loading...
Searching...
No Matches

#include <meshConverter.hh>

Inheritance diagram for concepts::ConvertMeshQuads:
concepts::Mesh2 concepts::Mesh concepts::OutputOperator

Public Member Functions

 ConvertMeshQuads (Mesh2 &m, const uint level)
 
virtual uint ncell () const
 Returns the number of cells in the mesh.
 
virtual Scan2scan ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Detailed Description

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.

Todo:
Implement methods to handle mixed meshes (quads and triangles)
Author
Philipp Frauenfelder, 2004
Test:
test::ConvertMeshQuads

Definition at line 35 of file meshConverter.hh.

Constructor & Destructor Documentation

◆ ConvertMeshQuads()

concepts::ConvertMeshQuads::ConvertMeshQuads ( Mesh2 m,
const uint  level 
)

Constructor. Takes the original mesh m and converts all triangles to quadrilaterals to build a new mesh

Parameters
mOriginal mesh
levelLevel in m which should be converted

Member Function Documentation

◆ info()

virtual std::ostream & concepts::ConvertMeshQuads::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::Mesh.

◆ ncell()

virtual uint concepts::ConvertMeshQuads::ncell ( ) const
inlinevirtual

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 45 of file meshConverter.hh.

◆ scan()

virtual Scan2 * concepts::ConvertMeshQuads::scan ( )
inlinevirtual

Returns a scanner over the cells of the mesh.

Postcondition
The scanner must be deleted after usage. This has to be done by the user.

Implements concepts::Mesh2.

Definition at line 46 of file meshConverter.hh.


The documentation for this class was generated from the following file: