function fem2d_scalar_display_txyz ( prefix )

%*****************************************************************************80
%
%% fem2d_scalar_display_txyz() displays a 3D finite element mesh.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 April 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    string PREFIX: the prefix to the node and element filenames.
%
  XYZ = load ( strcat ( prefix, '_nodes.txt'    ) );
  T  = load ( strcat ( prefix, '_elements.txt' ) );

  if ( min ( min ( T ) ) == 0.0 )
    T = T + 1.0;
  end

  trisurf ( T, XYZ(:,1), XYZ(:,2), XYZ(:,3) );

  filename = sprintf ( '%s.png', prefix );
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end

