mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-06 20:23:21 +02:00
remove magic number
This commit is contained in:
parent
78357057b6
commit
7ee4dea4ca
1 changed files with 3 additions and 2 deletions
|
@ -310,8 +310,9 @@ bool vhacd::VHACDUtil::computeVHACD(FBXGeometry& geometry,
|
|||
for (int i = 0; i < mesh.vertices.size(); ++i) {
|
||||
dupeIndexMap.push_back(i);
|
||||
for (int j = 0; j < i; ++j) {
|
||||
float distance = glm::distance(mesh.vertices[i], mesh.vertices[j]);
|
||||
if (distance < 0.0001f) {
|
||||
float distance = glm::distance2(mesh.vertices[i], mesh.vertices[j]);
|
||||
const float MAX_DUPE_DISTANCE_SQUARED = 0.000001f;
|
||||
if (distance < MAX_DUPE_DISTANCE_SQUARED) {
|
||||
dupeIndexMap[i] = j;
|
||||
++numDupes;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue