#include <meshDX.hh>
Public Member Functions | |
MeshDX (concepts::Mesh &msh, std::string filename) | |
MeshDX (concepts::Space< F > &spc, std::string filename, uint dim) | |
Draws a picture of a mesh in DX format and stores the result in a file. This class is just an executor class for MeshDXCell
and BoundaryDXCell
, the real work to draw the picture is done there.
The created file contains information on the cells of the mesh and the attribute of the boundary cells (if it is set). graphics/dx/mesh-boundary.net
contains a Visual Program for OpenDX to display this information.
The class has a template parameter which is not very handy. For this purpose, there are two trampoline functions drawMeshDX
which create this class and handle the template parameter corretctly.
drawMeshDX
the trampoline function of this class MeshDXCell
on of the classes which does the real work BoundaryDXCell
on of the classes which does the real work graphics::MeshDX< F >::MeshDX | ( | concepts::Mesh & | msh, |
std::string | filename | ||
) |
Constructor. The coarsest grid will be depicted. To store the results, a new file is created.
msh | Mesh which should be drawn |
filename | File where the data for OpenDX should be stored |
graphics::MeshDX< F >::MeshDX | ( | concepts::Space< F > & | spc, |
std::string | filename, | ||
uint | dim | ||
) |
Constructor. The currently used grid in the space will be depicted. To store the results, a new file is created.
spc | Space which should be drawn |
filename | File where the data for OpenDX should be stored |
dim | Spatial dimensions of the space, this parameter can be determined by the spaceDimensionTraits by using spaceDimension |