Changeset 3735


Ignore:
Timestamp:
05/12/10 15:30:40 (15 years ago)
Author:
jschierm
Message:

ProfileProjectOntoMesh.m: Logic error - must sort intersections to create segments in order and continuous along profile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Mesh/ProfileProjectOntoMesh.m

    r2110 r3735  
    1414%[x0,y0] = intersections(profile.x,profile.y,x,y,1);
    1515[x0,y0,indices,j] = intersections(profile.x,profile.y,x,y);
     16%  sort intersections to create segments in order and continuous along profile
     17[indices,isort]=sort(indices);
     18j =j (isort);
     19x0=x0(isort);
     20y0=y0(isort);
    1621
    1722%process x0,y0 so they do not include profile.x or profile.y
Note: See TracChangeset for help on using the changeset viewer.