Skip to content

Commit

Permalink
fix clang-format in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jan 7, 2025
1 parent 0bd754d commit 69c9a2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/dynamic_pointcloud_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void kdtree_demo(const size_t N)
const num_t radiusSqr = 1;
std::vector<nanoflann::ResultItem<size_t, num_t>> indices_dists;
nanoflann::RadiusResultSet<num_t, size_t> resultSet(
radiusSqr, indices_dists);
radiusSqr, indices_dists);

index.findNeighbors(resultSet, query_pt);

Expand Down
3 changes: 2 additions & 1 deletion examples/pointcloud_adaptor_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ void kdtree_demo(const size_t N)

dump_mem_usage();

auto do_knn_search = [](const my_kd_tree_t& index) {
auto do_knn_search = [](const my_kd_tree_t& index)
{
// do a knn search
const size_t num_results = 1;
size_t ret_index;
Expand Down
2 changes: 1 addition & 1 deletion examples/pointcloud_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void kdtree_demo(const size_t N)
const num_t squaredRadius = 1;
std::vector<nanoflann::ResultItem<size_t, num_t>> indices_dists;
nanoflann::RadiusResultSet<num_t, size_t> resultSet(
squaredRadius, indices_dists);
squaredRadius, indices_dists);

index.findNeighbors(resultSet, query_pt);

Expand Down

0 comments on commit 69c9a2b

Please sign in to comment.