Ignore:
Timestamp:
May 6, 2015, 4:00:45 PM (4 years ago)
Author:
ldelgass
Message:

Fix detection of skewed grids in unirect DX parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/trunk/Unirect.cpp

    r5328 r5430  
    498498    char *p, *pend;
    499499
    500     dx = dy = dz = 0.0;                 /* Suppress compiler warning. */
     500    dx = dy = dz = 0.0;
    501501    x0 = y0 = z0 = 0.0;                 /* May not have an origin line. */
    502     nx = ny = nz = npts = 0;            /* Suppress compiler warning. */
     502    nx = ny = nz = npts = 0;
    503503    for (p = string, pend = p + length; p < pend; /*empty*/) {
    504504        char *line;
     
    526526                dx = ddx;
    527527                count++;
    528             } else if (ddy != 0.0) {
     528            }
     529            if (ddy != 0.0) {
    529530                dy = ddy;
    530531                count++;
    531             } else if (ddz != 0.0) {
     532            }
     533            if (ddz != 0.0) {
    532534                dz = ddz;
    533535                count++;
Note: See TracChangeset for help on using the changeset viewer.