Changeset 1070 for cpp/frams/model


Ignore:
Timestamp:
02/03/21 21:51:50 (4 years ago)
Author:
oriona
Message:

MDS for one-part creatures fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/similarity/SVD/matrix_tools.cpp

    r817 r1070  
    196196                // set coordinate from the SVD solution
    197197                Coordinates[i].x = dCoordinates[i * nSize];
    198                 Coordinates[i].y = dCoordinates[i * nSize + 1];
     198                if (nSize > 1)
     199                        Coordinates[i].y = dCoordinates[i * nSize + 1];
     200                else
     201                        Coordinates[i].y = 0;
    199202                if (nSize > 2)
    200203                        Coordinates[i].z = dCoordinates[i * nSize + 2];
Note: See TracChangeset for help on using the changeset viewer.