function affichemaillage(nom_maillage, titre);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% affichemaillage: 
% pour visualiser un maillage triangulaire 2D
%
% SYNOPSIS affichemaillage(nom_maillage, titre)
%          
% INPUT  * nom_maillage : racine du fichier de maillage .amdba (string) 
%        * titre (optionel) un titre (string)
%
% OUTPUT une fenetre graphique
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% control on the input args
if (nargin<2), titre = ''; end;

% lecture du fichier nom_maillage.amdba
[Nbpt,Nbtri,Coorneu,Refneu,Numtri,Reftri]=read_amdba(nom_maillage);

%visualisation du maillage
figure;
hold on


% maillage
trimesh(Numtri,Coorneu(:,1),Coorneu(:,2),zeros(Nbpt,1));
view(2);
axis('equal');

% ajouter eventuellement un titre
title(titre);

hold off;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                        fin de la routine
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
