Changeset 5460 for nanovis


Ignore:
Timestamp:
May 7, 2015, 7:37:39 AM (4 years ago)
Author:
ldelgass
Message:

Fix DX keyword order in unirect DX import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/trunk/Unirect.cpp

    r5430 r5460  
    539539                return false;
    540540            }
    541         } else if (sscanf(line, "object %*d class array type %*s shape 3"
    542                 " rank 1 items %d data follows", &npts) == 1) {
     541        } else if (sscanf(line, "object %*d class array type %*s rank 1"
     542                " shape 3 items %d data follows", &npts) == 1) {
    543543            if (npts < 0) {
    544544                ERROR("bad # points %d", npts);
     
    546546            }
    547547            TRACE("#points=%d", npts);
    548             if (npts != nx*ny*nz) {
    549                 ERROR("inconsistent data: expected %d points"
    550                       " but found %d points", nx*ny*nz, npts);
    551                 return false;
    552             }
    553             break;
    554         } else if (sscanf(line, "object %*d class array type %*s rank 0"
    555                 " times %d data follows", &npts) == 1) {
    556548            if (npts != nx*ny*nz) {
    557549                ERROR("inconsistent data: expected %d points"
Note: See TracChangeset for help on using the changeset viewer.