#include <meshMatlab.hh>
Public Member Functions | |
MeshMatlab (concepts::Mesh &msh, std::string filename) | |
MeshMatlab (concepts::Space< F > &spc, std::string filename) | |
Creates data for Matlab to draw the mesh. This class is just an executor class for MeshMatlabCell, the real work is done there.
The data is stored in three file by appending '_1.m', '_2.m' and '_3.m' to the filename. The data can be read into Matlab by giving the three filenames as commands (and ommmiting the '.m'). Depending on the element type the mesh is either plotted by
plot3(a, b, c)
(if you want black lines in the plot, use
plot3(a, b, c, 'k')
) or
trimesh(b', a(1,:), a(2,:), a(3,:), ones(size(a,2),1))
This class opens and closes the three files and hands the streams to MeshMatlabCell.
Definition at line 51 of file meshMatlab.hh.
graphics::MeshMatlab< F >::MeshMatlab | ( | concepts::Mesh & | msh, |
std::string | filename | ||
) |
Constructor. Creates a picture of the coarsest mesh.
graphics::MeshMatlab< F >::MeshMatlab | ( | concepts::Space< F > & | spc, |
std::string | filename | ||
) |
Constructor. Creates a picture of the current mesh of the space.