Changeset 1072 for cpp/frams/model/similarity
- Timestamp:
- 02/08/21 20:49:50 (4 years ago)
- Location:
- cpp/frams/model/similarity
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/similarity/measure-greedy.cpp
r1071 r1072 320 320 // now compute the geometrical distance of these Parts (use coordinates 321 321 // which should be computed by SVD) 322 dGeo = 0;322 323 323 if (m_adFactors[3] > 0) 324 324 { … … 326 326 Pt3D Part1Pos(coordinates[1][iPartIndex[1]]); 327 327 dGeo = Part0Pos.distanceTo(Part1Pos); 328 } 328 } 329 else 330 dGeo = 0; //no need to compute distance when m_dDG weight is 0 329 331 330 332 // tutaj prawdopodobnie należy jeszcze dodać sprawdzanie … … 848 850 DB(_PrintDegrees(0);) 849 851 DB(_PrintDegrees(1);) 852 853 if (m_adFactors[3] == 0) 854 with_alignment = false; 850 855 } 851 856 … … 875 880 SAFEDELETE(m_pMatching); 876 881 882 with_alignment = true; 877 883 } 878 884 … … 1491 1497 m_adFactors[i] = params.at(i); 1492 1498 fixedZaxis = params.at(i); 1493 if (m_adFactors[3] == 0)1494 with_alignment = false;1495 1499 return 0; 1496 1500 } -
cpp/frams/model/similarity/measure-hungarian.cpp
r1071 r1072 68 68 for (int i = 0; i < nBigger; i++) 69 69 min_assignment.push_back(0); 70 71 if (m_adFactors[3] == 0) 72 with_alignment = false; 70 73 } 71 74 … … 126 129 if (save_matching) 127 130 min_assignment.clear(); 131 132 with_alignment = true; 128 133 } 129 134 … … 225 230 m_adFactors[i] = params.at(i); 226 231 fixedZaxis = params.at(i); 227 if (m_adFactors[3] == 0)228 with_alignment = false;229 232 return 0; 230 233 }
Note: See TracChangeset
for help on using the changeset viewer.