function p00_points_plot ( test, h, m, n, points, filename )

%*****************************************************************************80
%
%% p00_points_plot() plots points inside a region.
%
%  Discussion:
%
%    The boundary of the region is also drawn.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 May 2026
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer TEST, the number of the problem.
%
%    real H, the maximum size of a segment of the boundary.
%    This controls how smoothly curved sections of the boundary will be drawn.
%
%    integer M, the spatial dimension.
%
%    integer N, the number of points.
%
%    integer POINTS(M,N), the points to draw.
%
%    string filename: the name of the graphics file to create.
%
  clf ( );
  hold ( 'on' );
%
%  Determine the range of the points.
%
  segment_num = p00_boundary_segment_num ( test );

  for segment = 1 : segment_num

    segment_length = p00_boundary_segment_length ( test, segment, h );

    if ( segment_length <= 0 )
      continue
    end

    boundary = p00_boundary_segment ( test, segment, m, segment_length );

    plot ( boundary(1,:), boundary(2,:), 'r-', 'linewidth', 2 );

  end

  plot ( points(1,:), points(2,:), 'b.', 'markersize', 10 );

  hold ( 'off' );

  axis ( 'equal' );

  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
  close ( );

  return
end
