function p_xy = cvt_circle ( r, np, p_xy, p_type )

%*****************************************************************************80
%
%% cvt_circle() applies the CVT algorithm to points on a circle.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 December 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real R, the radius of the circle.
%
%    integer NP, the number of points.
%
%    real P_XY(2,NP), the point coordinates.
%
%    integer P_TYPE(NP),
%    1, the point is constrained to the circle.
%    2, the point is constrained to the disk.
%
%  Output:
%
%    real P_XY(2,NP), the updated point coordinates.
%
  for i = 1 : 30
    p_xy = cvt_circle_step ( r, np, p_xy, p_type );
  end

  return
end

