Changeset 186 for trunk/SRC/ToBeReviewed/TRIANGULATION/definetri.pro
- Timestamp:
- 09/20/06 12:50:37 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/TRIANGULATION/definetri.pro
r163 r186 6 6 ; the points are regulary-gridded on nx*ny array. 7 7 ; Find a Delaunay triangulation for this set of points is easy: 8 ; Points define (nx-1)*(ny-1) rectangles which we can cut in 2 9 ; triangles.cf. figure above8 ; Points define (nx-1)*(ny-1) rectangles which we can cut in 2 triangles. 9 ; cf. figure above 10 10 ; 11 11 ; <fixe> 12 ; fixe 12 13 ; ny-1*---*---*. . . . . .*---*---* 13 14 ; | +| +| | +| +| … … 47 48 ; 48 49 ; @param DOWNWARD {in}{optional} 49 ; When downward is undefine all rectangles are cut 50 ; in using the upward diagonal. Downward is a vector which51 ; contains the rectangles numbers which are cut in using the52 ; downward diagonal.53 ; The rectangle number is define by the index (in a nx*ny54 ; vector) of thelower-left corner of the rectangle.50 ; When downward is undefine all rectangles are cut in using the upward 51 ; diagonal. 52 ; Downward is a vector which contains the rectangles numbers which are cut in 53 ; using the downward diagonal. 54 ; The rectangle number is defined by the index (in a nx*ny vector) of the 55 ; lower-left corner of the rectangle. 55 56 ; 56 57 ; @returns 57 ; triangles is a 2d array and is dimensions are 3 and 58 ; 2*(nx-1)*(ny-1) 59 ; triangles is define like in the TRIANGULATE procedure. 58 ; triangles is a 2d array and its dimensions are 3 and 2*(nx-1)*(ny-1). 59 ; triangles is defined like in the TRIANGULATE procedure. 60 60 ; 61 61 ; @examples 62 62 ; 63 ; triangles=definetri(3,3,[1,3])64 ; triangles will be athis kind of triangulation:63 ; IDL> triangles=definetri(3,3,[1,3]) 64 ; triangles will be this kind of triangulation: 65 65 ; 66 66 ; *---*---* 67 ; 68 ; 69 ; 67 ; |+ | +| 68 ; | + | + | 69 ; | +|+ | 70 70 ; *---*---* 71 ; 72 ; 73 ; 71 ; | +|+ | 72 ; | + | + | 73 ; |+ | +| 74 74 ; *---*---* 75 75 ; … … 103 103 ; we define upward: upward is a vector which contains the rectangles 104 104 ; numbers which are cut in using the upward diagonal. 105 ; The rectangle number is define by the index (in a nx*ny vector) of105 ; The rectangle number is defined by the index (in a nx*ny vector) of 106 106 ; the lower-left corner of the rectangle. 107 107 upward = bytarr(nx, ny)+1
Note: See TracChangeset
for help on using the changeset viewer.