To display node numbers in a mesh
Parameters
Th : mesh structure
Optional parameters (of type addParameter)
'BackgroundColor'
RGB value to set the background color. Default value is [1 1 1] (white).
'FontSize'
(integer) To set the font size of node numbers. Default value is 10.
'Color'
(array of doubles) To set the RGB value of number color. Default value is [0 0 0] (black).
'C'
(integer) shift for node numbering (equal to 0 or 1). Default value is 0. If C=0, node numbering goes from 1 to Th.nq else from 0 to Th.nq-1.
Examples
Th=GetMeshOpt('meshes/disque4-1-3.msh'); PlotNodeNumber(Th);
Example with ’Color’
PlotNodeNumber(Th,'Color',[1 0 0]);
See also: GetMeshOpt, PlotMesh.
The following code
Th=GetMeshOpt('disque4-1-4.msh',2); PlotMesh(Th,'Color','brown'); PlotNodeNumber(Th,'Color',[0 0 0],'FontSize',12);
Produces the following figure
Figure 1 |
---|
![]() |
The following code
Th=GetMeshOpt('Ring-3.msh',2); PlotBounds(Th); PlotMesh(Th,'Color','brown'); PlotNodeNumber(Th,'Color',[0 0 0],'FontSize',12);
Produces the following figure
Figure 1 |
---|
![]() |
Package: ovisumesh