function ply_display_test ( )

%*****************************************************************************80
%
%% ply_display_test() tests ply_display().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 May 2012
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../ply_display' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ply_display_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  ply_display() reads a PLY file and display it\n' );

  ply_filename = 'cow.ply';
  png_filename = 'cow.png';

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Reading "%s"\n', ply_filename );

  ply_display ( ply_filename, png_filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ply_display_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../ply_display' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 November 2022
%
%  Author:
%
%    John Burkardt
%
  t = now ( );
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

