function quad_mesh_test105 ( )

%*****************************************************************************80
%
%% quad_mesh_test105() tests sample_q4_mesh().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 March 2009
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'quad_mesh_test105():\n' );
  fprintf ( 1, '  sample_q4_mesh() returns uniform sample points from\n' );
  fprintf ( 1, '  a Q4 mesh.\n' );

  [ node_num, element_num, hole_num ] = example1_q4_mesh_size ( );

  [ node_xy, element_node, element_neighbor ] = example1_q4_mesh ( node_num, ...
    element_num );

  sample_num = 20;

  [ sample_xy, sample_element ] = sample_q4_mesh ( node_num, node_xy, ...
    element_num, element_node, sample_num );

  fprintf ( 1, '\n' );
  fprintf ( 1, '             X        Y     Element\n' );
  fprintf ( 1, '\n' );

  for sample = 1 : sample_num

    fprintf ( 1, '  %8d  %8f  %8f  %8d\n', ...
      sample, sample_xy(1:2,sample), sample_element(sample) );

  end

  return
end
