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
41
41
PointSet const & ps = nsearch.point_set(point_set_id);
42
42
for (int i = 0 ; i < ps.n_points(); ++i)
43
43
{
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)
45
45
{
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);
48
48
// ...
49
49
// Do whatever you want with the point id. The id contains two indices.
50
50
// 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