function trinity_border_plot_test ( )

%*****************************************************************************80
%
%% trinity_border_plot_test() tests border_plot().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 March 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'trinity_border_plot_test():\n' );
  fprintf ( 1, '  border_plot() plots the border of an Eternity object.\n' );

  for k = 1 : 4
    [ w, p_ij ] = trinity_tile_word ( k );
    p_xy(1) = p_ij(1) * 0.25;
    p_xy(2) = p_ij(2) * sqrt ( 3.0 ) / 12.0;
    v_xy = word_to_vertex_xy ( w, p_xy );
    label = sprintf ( 'trinity tile%d: border (x,y)', k );
    filename = sprintf ( 'trinity_tile%d_border_xy.png', k );
    border_plot ( v_xy, label, filename );
  end

  [ w, p_ij ] = trinity_grid_word ( );
  p_xy(1) = p_ij(1) * 0.25;
  p_xy(2) = p_ij(2) * sqrt ( 3.0 ) / 12.0;
  v_xy = word_to_vertex_xy ( w, p_xy );
  label = 'trinity: border (x,y)';
  filename = 'trinity_border_xy.png';
  border_plot ( v_xy, label, filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'trinity_border_plot_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

