Skip to content

Commit

Permalink
fix 3D spatial kernel grid value calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller committed Dec 1, 2023
1 parent f8fc40f commit 3f3a6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/spatial_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void SpatialKernel::CalculateGridValues(SpatialMap &p_map)
double distance = sqrt(dist_a_sq + dist_b_sq + dist_c_sq);
double density = (distance > max_distance_) ? 0.0 : DensityForDistance(distance);

values_[a] = density;
values_[a + b * dim[0] + c * dim[0] * dim[1]] = density;
}
}
}
Expand Down

0 comments on commit 3f3a6e1

Please sign in to comment.