Changeset 1072 for cpp/frams


Ignore:
Timestamp:
02/08/21 20:49:50 (3 years ago)
Author:
oriona
Message:

Switching off the alignment moved.

Location:
cpp/frams/model/similarity
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/similarity/measure-greedy.cpp

    r1071 r1072  
    320320                                                        // now compute the geometrical distance of these Parts (use coordinates
    321321                                                        // which should be computed by SVD)
    322                                                         dGeo = 0;
     322                                                       
    323323                                                        if (m_adFactors[3] > 0)
    324324                                                        {
     
    326326                                                                Pt3D Part1Pos(coordinates[1][iPartIndex[1]]);
    327327                                                                dGeo = Part0Pos.distanceTo(Part1Pos);
    328                                                         }
     328                                                        }
     329                                                        else
     330                                                            dGeo = 0; //no need to compute distance when m_dDG weight is 0
    329331
    330332                                                        // tutaj prawdopodobnie należy jeszcze dodać sprawdzanie
     
    848850        DB(_PrintDegrees(0);)
    849851        DB(_PrintDegrees(1);)
     852
     853        if (m_adFactors[3] == 0)
     854            with_alignment = false;
    850855}
    851856
     
    875880        SAFEDELETE(m_pMatching);
    876881       
     882        with_alignment = true;
    877883}
    878884
     
    14911497                m_adFactors[i] = params.at(i);
    14921498        fixedZaxis = params.at(i);
    1493         if (m_adFactors[3] == 0)
    1494             with_alignment = false;
    14951499        return 0;
    14961500}
  • cpp/frams/model/similarity/measure-hungarian.cpp

    r1071 r1072  
    6868                for (int i = 0; i < nBigger; i++)
    6969                        min_assignment.push_back(0);
     70       
     71        if (m_adFactors[3] == 0)
     72            with_alignment = false;
    7073}
    7174
     
    126129        if (save_matching)
    127130                min_assignment.clear();
     131       
     132        with_alignment = true;
    128133}
    129134
     
    225230                m_adFactors[i] = params.at(i);
    226231        fixedZaxis = params.at(i);
    227         if (m_adFactors[3] == 0)
    228             with_alignment = false;
    229232        return 0;
    230233}
Note: See TracChangeset for help on using the changeset viewer.