亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? coreconrect.dpr

?? 勾畫等值線
?? DPR
字號:
//------------------------------------------------------------------------------{IMPLEMENTATION BY 2000-2001 Alexander Weidauer for the Delphi/V Code.This software is only IMPLEMENTED by Alexander Weidauer.This code is based on the work of Nicholas Yue CONREC.Cand the Paul D. Bourke CONREC.F routine.The authors hereby grant permission to use, copy, and distribute thissoftware and its documentation for any purpose, provided that existingcopyright notices are retained in all copies and that this notice is includedverbatim in any distributions. Additionally, the authors grant permission tomodify this software and its documentation for any purpose, provided thatsuch modifications are not distributed without the explicit consent of theauthors and that existing copyright notices are retained in all copies. Someof the algorithms implemented by this software are patented, observe allapplicable patent law.IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FORDIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUTOF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR APARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE IS PROVIDED ON AN"AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDEMAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.}//------------------------------------------------------------------------------//==============================================================================////     CONREC is a contouring subroutine for rectangularily spaced data.////     It emits calls to a line drawing subroutine supplied by the user//     which draws a contour map corresponding to float (4 byte) on a randomly//     spaced rectangular grid. The coordinates emitted are in the same//     units given in the x[] and y[] arrays as sample:////     x[0]:=0; x[1]:=1;..x[dimx-1]:=dimx-1; and//     y[0]:=0; y[1]:=1;..y[dimy-1]:=dimy-1;.//////     Any number of contour levels may be specified but they must be//     in order of increasing value as sample://     z[0]:=-100; z[1]:=-50;..z[dimh-1]:=100;//     and the number of contur levels must be given as sample dimh.//////     As this code is ported as from FORTRAN-77, ANSI C, Delphi and the//     procedural is of course a PASCALIAN//     please be very careful of the various indices like ilb,iub,jlb and jub,//     remeber that C/C++ and for dynamic arrays in delphi indices//     starts from zero (0)////==============================================================================Program CoreConRec;//------------------------------------------------------------------------------Uses SysUtils,Math;{$APPTYPE CONSOLE}//------------------------------------------------------------------------------Type TMatrix    = Array Of Array of Double;     TVector    = Array Of Double;     TVectorL4D = Array [0..4] of Double;     TVectorL4I = Array [0..4] of Integer;     TCastArray = Array [0..2,0..2,0..2] of Integer;//------------------------------------------------------------------------------Procedure Conrec      ( D:  TMatrix ; // 2D - Data field                          ilb,iub,           // west - east   ilb lower bound                                             //               iub upper bound                          jlb,jub : Integer; // north - south jlb lower bound                                             //               jub upper bound                          x : TVector;       // coord. vector west - east                          y : TVector;       // coord. vector north - south                          nc: Integer;       // nc number of cut levels                          z : TVector);      // values of cut levels//------------------------------------------------------------------------------Const im : Array [0..3] of Integer = (0,1,1,0);   // coord. cast array west - east jm : Array [0..3] of Integer = (0,0,1,1);   // coord. cast array north - south//------------------------------------------------------------------------------Var m1,m2,m3,deside:Integer; dmin,dmax,x1,x2,y1,y2:Double; lcnt,i,j,k,m:Integer; casttab : TCastArray; h       : TVectorL4D; sh      : TVectorL4I; xh,yh   : TVectorL4D; temp1,temp2:Double ; r:Byte; // ------- service xsec west east lin. interpol ------------------------------- Function xsec(p1,p2:Integer):Double;  Begin   result:=(h[p2]*xh[p1]-h[p1]*xh[p2])/(h[p2]-h[p1]);  End; //------- service ysec north south lin interpol ------------------------------- Function ysec(p1,p2:Integer):Double;  Begin   result := (h[p2]*yh[p1]-h[p1]*yh[p2])/(h[p2]-h[p1]);  End;Begin // set casting array casttab[0,0,0]:=0;casttab[0,0,1]:=0;casttab[0,0,2]:=8; casttab[0,1,0]:=0;casttab[0,1,1]:=2;casttab[0,1,2]:=5; casttab[0,2,0]:=7;casttab[0,2,1]:=6;casttab[0,2,2]:=9; casttab[1,0,0]:=0;casttab[1,0,1]:=3;casttab[1,0,2]:=4; casttab[1,1,0]:=1;casttab[1,1,1]:=3;casttab[1,1,2]:=1; casttab[1,2,0]:=4;casttab[1,2,1]:=3;casttab[1,2,2]:=0; casttab[2,0,0]:=9;casttab[2,0,1]:=6;casttab[2,0,2]:=7; casttab[2,1,0]:=5;casttab[2,1,1]:=2;casttab[2,1,2]:=0; casttab[2,2,0]:=8;casttab[2,2,1]:=0;casttab[2,2,2]:=0; // set line counter lcnt:=0; //----------------------------------------------------------------------------- For j:=jub-1 DownTo jlb Do Begin     // over all north - south and              +For j  For i:=ilb To iub-1 Do Begin        // east - west coordinates of datafield    +For i   // set casting bounds from array   temp1 := min(D[i  , j],D[i  ,j+1]);   temp2 := min(D[i+1, j],D[i+1,j+1]);   dmin  := min(temp1, temp2);   temp1 := max(D[i  , j],D[i  ,j+1]);   temp2 := max(D[i+1, j],D[i+1,j+1]);   dmax  := max(temp1, temp2);   If (dmax>=z[0]) And (dmin<=z[nc-1]) Then Begin // ask horzintal cut avail.    +If dmin && dmax in z[0] .. z[nc-1]    For k:=0 To nc-1 Do Begin                     // over all possible cuts ---- +For k     If (z[k]>dmin) And (z[k]<=dmax) Then Begin   // aks for cut intervall ----- +If z[k] in dmin .. dmax       //-----------------------------------------------------------------------       For m:=4 Downto 0 Do Begin  // deteriening the cut casts and set the ---- +For m       If (m>0) Then Begin         // height and coordinate vectors        h[m]  := D[i+im[m-1],j+jm[m-1]]-z[k];        xh[m] := x[i+im[m-1]];        yh[m] := y[j+jm[m-1]];       End Else Begin        h[0]  := (h[1]+h[2]+h[3]+h[4])/4;        xh[0] := (x[i]+x[i+1])/2;        yh[0] := (y[j]+y[j+1])/2;       End; // If m>0 then Else       If h[m]>0 Then sh[m]:=1        Else If h[m]<0 Then sh[m]:=-1         Else sh[m]:=0;       End; // ----------------------------------------------------------------- -For m       //-----------------------------------------------------------------------      For m:=1 to 4 Do Begin // set directional casttable        //        // Note: at this stage the relative heights of the corners and the        // centre are in the h array, and the corresponding coordinates are        // in the xh and yh arrays. The centre of the box is indexed by 0        // and the 4 corners by 1 to 4 as shown below.        // Each triangle is then indexed by the parameter m, and the 3        // vertices of each triangle are indexed by parameters m1,m2,and        // m3.        // It is assumed that the centre of the box is always vertex 2        // though this isimportant only when all 3 vertices lie exactly on        // the same contour level, in which case only the side of the box        // is drawn.        //        //      AS ANY BODY NOWS IST FROM THE ORIGINAL            //        //      vertex 4 +-------------------+ vertex 3        //               | \               / |        //               |   \    m-3    /   |        //               |     \       /     |        //               |       \   /       |        //               |  m=2    X   m=2   |       the centre is vertex 0        //               |       /   \       |        //               |     /       \     |        //               |   /    m=1    \   |        //               | /               \ |        //      vertex 1 +-------------------+ vertex 2        //        //        //        //               Scan each triangle in the box        //       m1 := m; m2 := 0;       If NOT(m=4) Then m3 := m+1 Else m3 :=1;       deside := casttab[sh[m1]+1 ,sh[m2]+1, sh[m3]+1];       If NOT(deside=0) Then Begin // ask is there a desition available -------- +If If NOT(deside=0)        Case deside Of // ------- determin the by desided cast cuts ------------ +Case deside;          1: Begin x1:=xh[m1]; y1:=yh[m1]; x2:=xh[m2]; y2:=yh[m2]; End;          2: Begin x1:=xh[m2]; y1:=yh[m2]; x2:=xh[m3]; y2:=yh[m3]; End;          3: Begin x1:=xh[m3]; y1:=yh[m3]; x2:=xh[m1]; y2:=yh[m1]; End;          4: Begin x1:=xh[m1]; y1:=yh[m1]; x2:=xsec(m2,m3); y2:=ysec(m2,m3);             End;          5: Begin x1:=xh[m2]; y1:=yh[m2]; x2:=xsec(m3,m1); y2:=ysec(m3,m1);             End;          6: Begin x1:=xh[m3]; y1:=yh[m3]; x2:=xsec(m1,m2); y2:=ysec(m1,m2);             End;          7: Begin x1:=xsec(m1,m2); y1:=ysec(m1,m2);                   x2:=xsec(m2,m3); y2:=ysec(m2,m3);             End;          8: Begin x1:=xsec(m2,m3); y1:=ysec(m2,m3);                   x2:=xsec(m3,m1); y2:=ysec(m3,m1);             End;          9: Begin x1:=xsec(m3,m1); y1:=ysec(m3,m1);                   x2:=xsec(m1,m2); y2:=ysec(m1,m2);             End;        End; // ---------------------------------------------------------------  -Case deside;        // ----------Do someting with the results ----------------------------         Writeln(Format('%2.2f %2.2f %2.2f %2.2f %2.2f',          [z[k],x1,y1,x2,y2]));        // -------------------------------------------------------------------       End; // -----------------------------------------------------------------  -If Not(deside=0)      End; // ------------------------------------------------------------------  -For m     End; // -------------------------------------------------------------------  -If z[k] in dmin .. dmax    End; // --------------------------------------------------------------------  -For k   End; // ---------------------------------------------------------------------  -If dmin && dmax in z[0] .. z[nc-1]  End; // ----------------------------------------------------------------------  -For i End; // -----------------------------------------------------------------------  -For jEnd;//------ End of ----------------------------------------------------------------//------------------------------------------------------------------------------// TestProcedure//------------------------------------------------------------------------------Const dimx = 100;  // dimension west - east      dimy = 100;  // dimenstion north west      dimh = 10;   // dimension for contour levels//------------------------------------------------------------------------------Var Mat:TMatrix;  // 2D - Datafield scx:TVector;  // scaling vector west - east scy:TVector;  // scaling vector north - west hgt:TVector;  // vector for the countur levels i,j:Integer;  // adress indexes x,y:Double;   // coord. values mi,ma:Double; // for minimum & maximum//------------------------------------------------------------------------------Begin setlength(scx,dimx); // create dynamicly the vectors and datafield setlength(scy,dimy); setlength(hgt,dimh); setlength(mat,dimx); For i:=0 to dimx-1 Do Setlength(mat[i],dimy); For i:=0 to dimx-1 Do scx[i]:= i * 10; // set scaling vector west - east For i:=0 to dimy-1 Do scy[i]:= i * 10; // set scaling vector north - south For i:=0 to dimx-1 Do  // ----------------------------------- set 2d data field  For j:=0 to dimy-1 Do Begin   x:=i-dimx/2;   y:=j-dimy/2;   mat[i,j]:= (sin(x/dimx*4*pi)    * cos(y/dimy*4*pi)) +              (sin(x/dimx*2*pi)    * cos(y/dimy*2*pi)) +              (sin(x/dimx*1*pi)    * cos(y/dimy*1*pi)) +              (sin(x/dimx*0.5*pi)  * cos(y/dimy*0.5*pi))+              (sin(x/dimx*0.25*pi) * cos(y/dimy*0.25*pi)); End; // ----------------------------------------------------------------------- mi:=1e16;    // ------------    Set the minimunm and maximum fof the data field ma:=-1e16; For i:=0 to dimx-1 Do  For j:=0 to dimy-1 Do Begin   if mat[i,j]<mi then mi:=mat[i,j];   if mat[i,j]>ma then ma:=mat[i,j];  End;        //----------------------------------------------------------------For i:=0 to dimh-1 Do hgt[i]:=mi+i*(ma-mi)/(dimh-1); // ----- create cut levels conrec(mat,0,dimx-1,0,dimy-1,scx,scy,dimh,hgt); // call the contour algorithmEnd.// --- EndOf File --------------------------------------------------------------

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品18久久久久久久网站| 日韩av午夜在线观看| 欧美肥妇bbw| 国产不卡视频一区二区三区| 夜夜嗨av一区二区三区中文字幕 | 亚洲成人av一区二区三区| 欧美电影免费观看高清完整版在线观看| 国产精品一区2区| 亚洲电影你懂得| 一色桃子久久精品亚洲| 日韩欧美成人激情| 欧美最猛性xxxxx直播| 国产精品99久久久久久似苏梦涵 | 91丨porny丨首页| 国产在线视频一区二区| 午夜久久久久久久久| 专区另类欧美日韩| 国产欧美一区二区在线观看| 日韩一级黄色片| 在线播放国产精品二区一二区四区| 成人涩涩免费视频| 国产一区二区三区在线观看精品 | 一区二区三国产精华液| 欧美韩国日本不卡| 久久蜜桃av一区精品变态类天堂| 欧美一区二区三区公司| 91福利在线看| 一本久道久久综合中文字幕| 国产91露脸合集magnet| 国产制服丝袜一区| 国内外成人在线| 久久成人免费日本黄色| 强制捆绑调教一区二区| 图片区小说区国产精品视频| 亚洲国产日日夜夜| 亚洲狠狠爱一区二区三区| 曰韩精品一区二区| 亚洲欧美偷拍另类a∨色屁股| 国产精品国产三级国产普通话三级| 久久久久久久久久久久久久久99| 精品国精品自拍自在线| 日韩欧美aaaaaa| 欧美成人在线直播| 精品理论电影在线| 精品999久久久| 2024国产精品视频| 久久久亚洲午夜电影| 欧美精品一区二区三区在线播放 | 亚洲午夜久久久久久久久电影网 | 亚洲一线二线三线视频| 亚洲综合网站在线观看| 亚洲高清免费观看| 日韩avvvv在线播放| 美女mm1313爽爽久久久蜜臀| 久久精品国产亚洲aⅴ| 久久国产精品99精品国产 | 极品少妇一区二区| 福利一区二区在线观看| 成人h动漫精品一区二区| 97久久人人超碰| 91成人国产精品| 91精品国产综合久久福利软件| 7777精品伊人久久久大香线蕉 | 在线成人av网站| 精品少妇一区二区三区日产乱码| 精品国产精品一区二区夜夜嗨| 国产亚洲欧洲997久久综合 | 大陆成人av片| 91免费精品国自产拍在线不卡| 日本福利一区二区| 91精品国产综合久久蜜臀 | 欧美极品美女视频| 成人免费在线播放视频| 亚洲资源在线观看| 国产一区二区三区四| 9色porny自拍视频一区二区| 在线观看一区二区精品视频| 日韩精品一区二区三区在线播放| 国产区在线观看成人精品| 亚洲黄一区二区三区| 激情文学综合插| 91原创在线视频| 欧美猛男男办公室激情| wwww国产精品欧美| 亚洲一级二级在线| 国产麻豆一精品一av一免费 | 五月天精品一区二区三区| 国产一区二三区| 一本大道久久a久久综合婷婷| 91精品麻豆日日躁夜夜躁| 国产精品视频第一区| 午夜精品久久久久久| 国产精品一卡二| 欧美撒尿777hd撒尿| 国产无一区二区| 亚洲午夜久久久久久久久久久 | 在线播放91灌醉迷j高跟美女| 国产欧美精品一区aⅴ影院 | 亚洲欧洲国产日韩| 青青草97国产精品免费观看| 91蜜桃在线免费视频| 精品捆绑美女sm三区| 亚洲图片欧美一区| av一区二区三区在线| 精品国产露脸精彩对白 | 亚洲一区在线视频| 福利电影一区二区三区| 日韩一区二区免费高清| 一区二区三区高清在线| 成人激情图片网| 日韩美女视频一区二区在线观看| 亚洲精品视频免费观看| 国产不卡高清在线观看视频| 日韩一级片在线播放| 香蕉影视欧美成人| 99re8在线精品视频免费播放| 国产人久久人人人人爽| 久久er99精品| 欧美日韩亚洲国产综合| 最新热久久免费视频| 国产成人8x视频一区二区| 日韩欧美色电影| 日韩不卡免费视频| 欧美高清精品3d| 一个色综合网站| 色婷婷综合久久久久中文一区二区| 欧美国产一区二区| 国产成人精品影视| 国产欧美精品一区| 国产精品88888| 久久久久久久av麻豆果冻| 美国十次综合导航| 精品久久久久久久人人人人传媒| 三级久久三级久久久| 欧美久久久久久久久中文字幕| 亚洲线精品一区二区三区| 欧美视频第二页| 亚洲香肠在线观看| 欧美日韩国产天堂| 日本女优在线视频一区二区| 777亚洲妇女| 美女视频第一区二区三区免费观看网站| 欧美精品日韩综合在线| 天天色综合成人网| 欧美一区二区三区喷汁尤物| 久草热8精品视频在线观看| 欧美xxxx在线观看| 国产成人在线色| 国产女主播视频一区二区| 成人午夜免费视频| 18成人在线观看| 欧洲一区二区三区免费视频| 亚洲成人一区在线| 欧美一区二区日韩一区二区| 男人的天堂亚洲一区| www国产精品av| 成人av资源网站| 一区二区三区久久| 91精品国产91久久综合桃花 | 日韩一区在线播放| 91成人免费电影| 日本不卡高清视频| 欧美激情在线一区二区| 日本精品一级二级| 免费在线观看不卡| 中文字幕乱码亚洲精品一区| 91在线国产福利| 日韩精品亚洲一区| 国产亚洲午夜高清国产拍精品 | 天天影视涩香欲综合网| 欧美成人免费网站| 91免费观看视频在线| 日本伊人色综合网| 国产欧美日韩激情| 91福利在线观看| 国产一区二区三区日韩| 中文字幕在线观看不卡视频| 精品视频1区2区| 国产精品69毛片高清亚洲| 首页亚洲欧美制服丝腿| 久久久午夜精品理论片中文字幕| 91污片在线观看| 日本女人一区二区三区| 国产精品麻豆欧美日韩ww| 欧美四级电影网| 国产福利一区二区三区在线视频| 一级女性全黄久久生活片免费| 精品国产麻豆免费人成网站| 一本久久a久久精品亚洲| 久久99精品国产麻豆不卡| 亚洲免费av高清| 久久久久久久电影| 337p亚洲精品色噜噜噜| 99久久婷婷国产精品综合| 毛片基地黄久久久久久天堂| 综合激情网...| 国产婷婷色一区二区三区四区| 欧洲av在线精品| 波多野结衣中文一区| 另类的小说在线视频另类成人小视频在线|