File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ Finally, the neighborhood information can be accessed as follows
4141PointSet const & ps = nsearch.point_set(point_set_id);
4242for (int i = 0 ; i < ps.n_points(); ++i)
4343{
44- for (int j = 0; j < ps.n_neighbors(i); ++j)
44+ for (size_t j = 0; j < ps.n_neighbors(neighbor_point_set_id, i); ++j)
4545 {
46- // Return PointID of the jth neighbor of the ith particle in the 0th point set.
47- PointID const& pid = ps.neighbor(0, i, j);
46+ // Return the point id of the jth neighbor of the ith particle in the 0th point set.
47+ const unsigned int pid = ps.neighbor(0, i, j);
4848 // ...
4949 // Do whatever you want with the point id. The id contains two indices.
5050 // The first field pid.point_set_id represents the unique point set id returnd by add_point_set.
You can’t perform that action at this time.
0 commit comments