Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update hausdorff_lower_bound.cpp
  • Loading branch information
jnyao authored Oct 9, 2018
commit 24f4975d9107cfb9593f93caadcb81f4b4c5b068
9 changes: 8 additions & 1 deletion src/hausdorff_lower_bound.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "hausdorff_lower_bound.h"
#include "random_points_on_mesh.h"
#include "point_mesh_distance.h"

double hausdorff_lower_bound(
const Eigen::MatrixXd & VX,
Expand All @@ -8,5 +10,10 @@ double hausdorff_lower_bound(
const int n)
{
// Replace with your code
return 0;
Eigen::MatrixXd X(n, 3);
random_points_on_mesh(n, VX, FX, X);
Eigen::MatrixXd P, N;
Eigen::VectorXd D;
point_mesh_distance(X, VY, FY, D, P, N);
return D.maxCoeff();
}