function [m,b]=gfMeshIm(a, varargin)
% gfMeshIm class pseudo-constructor
  this_class = 'gfMeshIm';
  if (nargin==0) error('cant create an empty mesh_im reference'); end;
  if (isa(a,this_class)),
    m=a;
  else
    if (isstruct(a) & isfield(a,'id') & isfield(a,'cid'))
      cname = gf_workspace('class name',a);
      if (strcmp(cname, this_class))
	 m = a;
      else
	 m = gf_mesh_im(a,varargin{:});
      end;
    else
      m = gf_mesh_im(a,varargin{:});
    end;
    m.txt = '';
    m = class(m, this_class);
  end;
% autogenerated mfile;
