You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: showvoronoi.m
    path of file: ./repos/gptoolbox/mesh
    
    the code of the file until where you have to start completion: function varargout = showvoronoi(D,V,E,RP,RD,crop)
  % SHOWVORONOI display a voronoi diagram
  %
  % h = showvoronoi(D,V,E,RP,RD)
  % h = showvoronoi(D,V,E,RP,RD,crop)
  % 
  % Inputs:
  %   D  #D by 2 list of voronoi cell centers (data points)
  %   V  #V by 2 list of voronoi diagram vertices
  %   E  #E by 2 list of voronoi internal edges

    
function varargout = showvoronoi(D,V,E,RP,RD,crop)
  % SHOWVORONOI display a voronoi diagram
  %
  % h = showvoronoi(D,V,E,RP,RD)
  % h = showvoronoi(D,V,E,RP,RD,crop)
  % 
  % Inputs:
  %   D  #D by 2 list of voronoi cell centers (data points)
  %   V  #V by 2 list of voronoi diagram vertices
  %   E  #E by 2 list of voronoi internal edges
  %   RP  #RP by 1 list of voronoi infinite ray start points
  %   RD  #RP by 2 list of voronoi infinite direction vectors
  %   optional:
  %     crop  crop plot to fit just data points {true}
  % Output:
  %   h  handle to plot
  %
  % See also readEDGE, triangle
  %
  if(~exist('crop','var'))
    crop = true;
  end