<< gf_plot_1D sci_getfem gf_plot_slice >>

sci_getfem >> sci_getfem > gf_plot_mesh

gf_plot_mesh

General mesh plotting function.

Calling Sequence

[hmesh,hbound,hfill,hvert,hconv,hdof]=gf_plot_mesh(M, [,properties] [,'cvlst',CVLST] ['boundaries'[BLST]])

Description

H=gf_plot_mesh(M) displays a mesh.

Properties are:

CAUTION: For 'dof', M should be a mesh_fem identifier, not a simple mesh object.

This function can be used with any mesh in any dimension (except if the 'faces' options is turned on).

On output, this function returns the handles to the various graphical objects created: hmesh is the handles to the mesh lines, hbound is the handles to the edges of the boundaries, hfill is the handle of the patch objects of faces, hvert (resp hconv,hdof) is the handles of the vertices (resp. convexes, dof) labels.

Examples

Displaying a donut (meshed with quadratic tetrahedrons) created with GiD:

// the mesh is in the demos directory of the distribution
m = gf_mesh('import','gid','donut_with_quadratic_tetra_1100_elements.msh');
gf_plot_mesh(m,'refine',15,'cvlst',gf_mesh_get(m,'outer faces'),'faces','on',...
'faces_color',[1. .9 .2],'curved','on','edges_width',2);

You can notice that the mesh has a small default on some elements.

See Also


Report an issue
<< gf_plot_1D sci_getfem gf_plot_slice >>