function object_elements_test ( )

%*****************************************************************************80
%
%% object_elements_test() tests object_elements().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 December 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'object_elements_test():\n' );
  fprintf ( 1, '  object_elements() returns information about the\n' );
  fprintf ( 1, '  triangular elements and nodes forming an object.\n' );

  tile_index = 2;
  [ w, p ] = t_tile_word ( tile_index );

  [ ok, ot, oxy ] = object_elements ( w, p );

  oxyn = size ( oxy, 1 );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  #  (X,Y)\n' );
  fprintf ( 1, '\n' );
  for oxyi = 1 : oxyn
    fprintf ( 1, '  %d: (%g,%g)\n', oxyi, oxy(oxyi,1:2) );
  end

  otn = size ( ot, 1 );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  #  Type  (N1,N2,N3)\n' );
  fprintf ( 1, '\n' );
  for oti = 1 : otn
    fprintf ( 1, '  %d: %d  (%d,%d,%d)\n', oti, ot(oti), ok(oti,1:3) );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'object_elements_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

