Skip to content

Commit 3b27539

Browse files
committed
Removed debugging check
1 parent 7eaf0f4 commit 3b27539

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

TriangleMeshDistance/include/tmd/TriangleMeshDistance.h

-15
Original file line numberDiff line numberDiff line change
@@ -280,21 +280,6 @@ inline void tmd::TriangleMeshDistance::_construct()
280280
this->nodes.push_back(Node());
281281
this->_build_tree(0, this->root_bv, triangles, 0, (int)triangles.size());
282282

283-
if (false) { // Test: Check that triangles appear exactly only once
284-
std::vector<int> count(this->triangles.size(), 0);
285-
for (const Node& node : this->nodes) {
286-
if (node.left == -1) {
287-
count[node.right]++;
288-
}
289-
}
290-
for (size_t i = 0; i < count.size(); i++) {
291-
if (count[i] != 1) {
292-
std::cout << "DistanceTriangleMesh error: Duplicated triangles found in the tree." << std::endl;
293-
exit(-1);
294-
}
295-
}
296-
}
297-
298283
// Compute pseudonormals
299284
//// Edge data structure
300285
std::unordered_map<uint64_t, Eigen::Vector3d> edge_normals;

0 commit comments

Comments
 (0)