Navigation

Operators and Keywords

Function List:

C++ API

Function File: h = pdemesh (p, e, t, u)

Plot a triangular mesh in 3D given a mesh structure and node data. p, t are the mesh vertices and connectivity, u node data. e is ignored and is accepted only for compatibiity.

See also: fpl_dx_write_field, fpl_vtk_write_field.

Demonstration 1

The following code

 msh = msh2m_structured_mesh ([0:.05:1], [0:.1:1], 1, 1:4, 'random');
 x = msh.p(1,:)'; xm = sum(x(msh.t(1:3,:)),1)/3;
 y = msh.p(2,:)'; ym = sum(y(msh.t(1:3,:)),1)/3;
 pdemesh (msh.p, msh.t, msh.t, x.*(1-x).*y.*(1-y))
 view(3)

Produces the following figure

Figure 1

Package: fpl