function polygon_sample_test ( )

%*****************************************************************************80
%
%% POLYGON_SAMPLE_TEST tests POLYGON_SAMPLE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    15 October 2015
%
%  Author:
%
%    John Burkardt
%
  n = 20;
  nv = 6;
  v = [ ...
    0.0, 0.0; ...
    2.0, 0.0; ...
    2.0, 1.0; ...
    1.0, 1.0; ...
    1.0, 2.0; ...
    0.0, 1.0 ]';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'POLYGON_SAMPLE_TEST\n' );
  fprintf ( 1, '  POLYGON_SAMPLE samples a polygon.\n' );

  seed = 123456789;

  [ x, seed ] = polygon_sample ( nv, v, n, seed );

  r8mat_transpose_print ( 2, n, x, '  Sample points:' );

  return
end

