Changeset 20502
- Timestamp:
- 04/13/16 08:26:45 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/exp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/exp/downstreamflowlines.m
r9734 r20502 38 38 end 39 39 40 %check seed points 41 tria=TriaSearch(index,x,y,x0,y0); 40 %Create triangulation once for all and check seed points 41 trep = triangulation(index,x,y); 42 tria = pointLocation(trep,[x0 y0]); 42 43 pos=find(isnan(tria)); 43 44 x0(pos)=[]; … … 70 71 %find current triangle 71 72 queue=find(~done); 72 tria =TriaSearch(index,x,y,X(queue),Y(queue));73 tria = pointLocation(trep,[X(queue),Y(queue)]); 73 74 74 75 %check that the point is actually inside a triangle of the mesh -
issm/trunk-jpl/src/m/exp/flowlines.m
r14440 r20502 37 37 precision=1; %division of each segment (higer precision increases number of segments) 38 38 39 % check seed points40 tr ia=TriaSearch(index,x,y,x0,y0);41 %tria=tsearch(x,y,index,x0,y0);39 %Create triangulation once for all and check seed points 40 trep = triangulation(index,x,y); 41 tria = pointLocation(trep,[x0 y0]); 42 42 pos=find(isnan(tria)); 43 43 x0(pos)=[]; … … 70 70 %find current triangle 71 71 queue=find(~done); 72 tria=TriaSearch(index,x,y,X(queue),Y(queue)); 73 %tria=tsearch(x,y,index,X(queue),Y(queue)); 72 tria = pointLocation(trep,[X(queue),Y(queue)]); 74 73 75 74 %check that the point is actually inside a triangle of the mesh … … 121 120 %find current triangle 122 121 queue=find(~done); 123 tria=TriaSearch(index,x,y,X(queue),Y(queue)); 124 %tria=tsearch(x,y,index,X(queue),Y(queue)); 122 tria = pointLocation(trep,[X(queue),Y(queue)]); 125 123 126 124 %check that the point is actually inside a triangle of the mesh
Note:
See TracChangeset
for help on using the changeset viewer.