summaryrefslogtreecommitdiff
path: root/texmf-dist/scripts/ketcindy/ketlib/ketpic2escifiles6/Sfbdrawpersdata.sci
blob: cde6870f1d06c8d820d04b8e2a1ce6cab6b10247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 08.09.21

function Out5=Sfbdrawpersdata(varargin)
  global IMPLICITDATA CUSPDATA CUSPPT CUSPSPLITPT;
  Nargs=length(varargin);
  Fd=varargin(1);
  FdL=Fullformfunc(Fd);
  Np=[50,50];
  if Nargs>=2
    Np=varargin(2);
    if type(Np)==1 & length(Np)==1
      Np=[Np,Np];
    end;
  end;
  Eps=0.05;
  if Nargs>=3
    Eps=varargin(3);
  end;
  Ts=timer();
  [Zval,Xval,Yval]=Evlptablepers(Mix(Fd,Np));
  Out3=Implicitplot(Zval,Xval,Yval);
  BdyL=Mixop(8,FdL);
  if BdyL~=[]
    Out3=Clipindomain(Out3,BdyL)
  end;
  IMPLICITDATA=Out3;
  Out4=Cuspsplitpers(Out3,Fd,Eps);
  CUSPDATA=Out4;
  CCUSPPT=CUSPSPLITPT;
  Out5=Borderrawdata(Out4,Fd,Np,Eps);
endfunction;