Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Why +1 ? #4

Open
SkybuckFlying opened this issue Mar 9, 2022 · 0 comments
Open

Why +1 ? #4

SkybuckFlying opened this issue Mar 9, 2022 · 0 comments

Comments

@SkybuckFlying
Copy link

Code like this, seems to set the index to a minimum of 1 ? Why do that ? Does this code assume the voxel grid starts at index 1,1,1 ?

size_t current_X_index = MAX(1, std::ceil(ray_start.x() - grid.minBound().x() / grid.voxelSizeX()));
const size_t end_X_index = MAX(1, std::ceil(ray_end.x() - grid.minBound().x() / grid.voxelSizeX()));
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant