Changeset 4041


Ignore:
Timestamp:
06/11/10 15:57:46 (15 years ago)
Author:
jschierm
Message:

intersections.m: Fix bug for a path of one segment.

File:
1 edited

Legend:

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

    r2110 r4041  
    148148        repmat(max(y1(1:end-1),y1(2:end)),1,n2) >= ...
    149149        repmat(min(y2(1:end-1),y2(2:end)).',n1,1));
     150
     151% For one segment in x1,y1, i and j are returned as row vectors.  They
     152% need to be column vectors, or iout and jout below will err out.
     153% (jes, 6/11/10)
     154
     155if (size(i,1) == 1)
     156    i=i';
     157end
     158if (size(j,1) == 1)
     159    j=j';
     160end
    150161
    151162% Find segments pairs which have at least one vertex = NaN and remove them.
Note: See TracChangeset for help on using the changeset viewer.