function [m,b]=gfLevelSet(a, varargin)
% gfLevelSet class pseudo-constructor
  this_class = 'gfLevelSet';
  if (nargin==0) error('cant create an empty levelset 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_levelset(a,varargin{:});
      end;
    else
      m = gf_levelset(a,varargin{:});
    end;
    m.txt = '';
    m = class(m, this_class);
  end;
% autogenerated mfile;
