function h = fh05 ( p, varargin )

%*****************************************************************************80
%
%% fh05() returns a mesh size function for the cylinder with a hole.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 December 2020
%
%  Reference:
%
%    Per-Olof Persson and Gilbert Strang,
%    A Simple Mesh Generator in MATLAB,
%    SIAM Review,
%    Volume 46, Number 2, June 2004, pages 329-345.
%
%  Input:
%
%    real P(NP,3), the point coordinates.
%
%    VARARGIN, room for extra arguments.
%
%  Output:
%
%    real H(NP,1), the mesh size function.
%
  h1 = 4.0 * sqrt ( sum ( p.^2, 2 ) ) - 1.0;

  h = min ( h1, 2.0 );

  return
end
