diff options
Diffstat (limited to 'texmf-dist/scripts/ketcindy/ketlib/ketpic2escifiles6/Partframe.sci')
-rw-r--r-- | texmf-dist/scripts/ketcindy/ketlib/ketpic2escifiles6/Partframe.sci | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/texmf-dist/scripts/ketcindy/ketlib/ketpic2escifiles6/Partframe.sci b/texmf-dist/scripts/ketcindy/ketlib/ketpic2escifiles6/Partframe.sci new file mode 100644 index 00000000..a8581b1b --- /dev/null +++ b/texmf-dist/scripts/ketcindy/ketlib/ketpic2escifiles6/Partframe.sci @@ -0,0 +1,27 @@ +// 13.05.03 + +function Out=Partframe(Tb,St,Ed) + G=Dividetable(Tb); + Gw=G(1); + Gt=G(2); + Gy=G(3); + Gwt=Tb(4); + Gwy=Tb(5); + Gat=lstcat(list(Gwt(1)),Gt,list(Gwt(2))); + Gay=lstcat(list(Gwy(1)),Gy,list(Gwy(2))); + Tmp1=Ptstart(Gat(St(1))); + Tmp2=Ptstart(Gay(St(2))); + Ps=[Tmp1(1),Tmp2(2)]; + Tmp1=Ptstart(Gat(Ed(1))); + Tmp2=Ptstart(Gay(Ed(2))); + Pe=[Tmp1(1),Tmp2(2)]; + Pars=Paramoncrv(Ps,Gw); + Pare=Paramoncrv(Pe,Gw); + if Pars<Pare then + Out=Partcrv(Pars,Pare,Gw); + else + Tmp1=Partcrv(Pars,Numptcrv(Gw),Gw); + Tmp2=Partcrv(1,Pare,Gw); + Out=Joincrvs(Tmp1,Tmp2); + end +endfunction; |