Changeset 5326


Ignore:
Timestamp:
Apr 27, 2015, 6:08:24 PM (4 years ago)
Author:
ldelgass
Message:

nanovis can't handle negative deltas in DX files, so return an error if one is
found. I'm not even sure this is valid in the DX format, but there is a tool
generating negative deltas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/trunk/dxReader.cpp

    r5311 r5326  
    219219    if (npts > 1 && ((dx == dy) && (dx == dz) && (dx == 0.0))) {
    220220        ERROR("Invalid deltas in DX file: %g %g %g", dx, dy, dz);
     221        return NULL;
     222    }
     223    if (dx < 0.0 || dy < 0.0 || dz < 0.0) {
     224        ERROR("Negative deltas not supported in DX file: %g %g %g", dx, dy, dz);
    221225        return NULL;
    222226    }
Note: See TracChangeset for help on using the changeset viewer.