Skip to content

Commit be12c8f

Browse files
fix: remove unneeded ostream that was added for debugging
1 parent 1b2903f commit be12c8f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/diffCheck/segmentation/DFSegmentation.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ namespace diffCheck::segmentation
241241
std::chrono::system_clock::now().time_since_epoch()
242242
).count()
243243
);
244-
std::ofstream logFile("C:\\Users\\localuser\\Desktop\\association_log_" + timestamp + ".txt", std::ios::app);
245244
for (std::shared_ptr<diffCheck::geometry::DFMesh> face : referenceMesh)
246245
{
247246
std::shared_ptr<geometry::DFPointCloud> correspondingSegment;
@@ -282,8 +281,6 @@ namespace diffCheck::segmentation
282281
// if the distance is smaller than the previous one, update the distance and the corresponding segment
283282
if (std::abs(sin(acos(faceNormal.dot(segmentNormal)))) < angleThreshold && currentDistance * (angleAssociationThreshold + std::abs(faceNormal.dot((faceCenter - segmentCenter) / (faceCenter - segmentCenter).norm()))) < faceDistance)
284283
{
285-
logFile << std::abs(sin(acos(faceNormal.dot(segmentNormal)))) << " < " << angleThreshold << " and " << currentDistance << " * (" << angleAssociationThreshold << " + " << std::abs(faceNormal.dot((faceCenter - segmentCenter) / (faceCenter - segmentCenter).norm())) << ") < " << faceDistance << std::endl;
286-
logFile << " considered face: Face normal: " << faceNormal.transpose() << ", Segment normal: " << segmentNormal.transpose() << ", Current distance: " << currentDistance << ", Face distance: " << faceDistance << std::endl;
287284
correspondingSegment = segment;
288285
faceDistance = currentDistance * (angleAssociationThreshold + std::abs(faceNormal.dot((faceCenter - segmentCenter) / (faceCenter - segmentCenter).norm())));
289286
}
@@ -334,7 +331,6 @@ namespace diffCheck::segmentation
334331
}
335332
faceSegments.push_back(facePoints);
336333
}
337-
logFile.close();
338334
}
339335
return faceSegments;
340336
}

0 commit comments

Comments
 (0)