Ignore:
Timestamp:
08/20/10 12:22:20 (15 years ago)
Author:
Mathieu Morlighem
Message:

Final fix to edges extraction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/modelextract.m

    r5442 r5451  
    160160                pos=find(md2.edges(:,4)==0);
    161161                md2.edges(pos,4)=NaN;
    162                 %Invert NaN of the third column with last column
     162                %Invert NaN of the third column with last column (Also invert first two columns!!)
    163163                pos=find(isnan(md2.edges(:,3)));
    164164                md2.edges(pos,3)=md2.edges(pos,4);
    165165                md2.edges(pos,4)=NaN;
     166                values=md2.edges(pos,2);
     167                md2.edges(pos,2)=md2.edges(pos,1);
     168                md2.edges(pos,1)=values;
    166169                %Finally remove edges that do not belong to any element
    167170                pos=find(isnan(md2.edges(:,3)) & isnan(md2.edges(:,4)));
Note: See TracChangeset for help on using the changeset viewer.