Skip to content

Commit

Permalink
Address Knits.
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed Jul 28, 2022
1 parent c8e7542 commit 64e03b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/gz/math/VolumetricGridLookupField.hh
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ namespace gz
assert(_indices.size() == _cloud.size());
// NOTE: This part of the code assumes an exact grid of points.
// The grid may be distorted or the stride between different points
// may not be the same, but fundamentally the data is structured still
// forms a grid-like structure. It keeps track of the axis indices for
// may not be the same, but fundamentally the data is structured in
// a grid-like structure. It keeps track of the axis indices for
// each point in the grid.
for(auto pt : _cloud)
{
Expand Down
2 changes: 1 addition & 1 deletion src/VolumetricGridLookupField_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ TEST(VolumetricGridLookupField, CustomIndices)
for(double z = 0; z < 300; z += stride_z)
{
cloud.emplace_back(x, y, z);
indices.push_back(0);
}
}
}
indices.resize(cloud.size(), 0);
VolumetricGridLookupField<double> scalarIndex(cloud, indices);
auto val = scalarIndex.GetInterpolators(cloud[0]);
ASSERT_EQ(val.size(), 1UL);
Expand Down

0 comments on commit 64e03b9

Please sign in to comment.