Class documentation of Concepts

Loading...
Searching...
No Matches
graphics::MeshMatlab< F > Class Template Reference

#include <meshMatlab.hh>

Public Member Functions

 MeshMatlab (concepts::Mesh &msh, std::string filename)
 
 MeshMatlab (concepts::Space< F > &spc, std::string filename)
 

Detailed Description

template<typename F>
class graphics::MeshMatlab< F >

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.

See also
drawMeshMatlab the trampoline function of this class
Author
Philipp Frauenfelder, 2002

Definition at line 51 of file meshMatlab.hh.

Constructor & Destructor Documentation

◆ MeshMatlab() [1/2]

template<typename F >
graphics::MeshMatlab< F >::MeshMatlab ( concepts::Mesh msh,
std::string  filename 
)

Constructor. Creates a picture of the coarsest mesh.

◆ MeshMatlab() [2/2]

template<typename F >
graphics::MeshMatlab< F >::MeshMatlab ( concepts::Space< F > &  spc,
std::string  filename 
)

Constructor. Creates a picture of the current mesh of the space.


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