Changeset 601 for cpp/frams/model/similarity/simil_model.cpp
- Timestamp:
- 08/28/16 15:19:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/similarity/simil_model.cpp
r492 r601 1997 1997 // get the position of the Part 1998 1998 P1Pos = P1->p; 1999 if (zFixed == 1) 2000 { 2001 P1Pos.z = 0; 2002 } 1999 2003 for (iP2 = 0; iP2 < pModel->getPartCount(); iP2++) 2000 2004 { … … 2003 2007 // get the position of the Part 2004 2008 P2Pos = P2->p; 2009 if (zFixed == 1) 2010 { 2011 P2Pos.z = 0; 2012 } 2005 2013 // compute the geometric (Euclidean) distance between the Parts 2006 2014 dDistance = P1Pos.distanceTo(P2Pos); … … 2011 2019 2012 2020 MatrixTools::SVD(vEigenvalues, nSize, pDistances, m_aPositions[ iMod ]); 2021 if (zFixed == 1) 2022 { 2023 for (int coord = 0; coord < pModel->getPartCount(); coord++) 2024 { 2025 m_aPositions[ iMod ][coord].z = pModel->getPart(coord)->p.z; 2026 } 2027 } 2028 2013 2029 free(pDistances); 2014 2030 }
Note: See TracChangeset
for help on using the changeset viewer.