We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01f6983 + 0a116a9 commit ac33c4aCopy full SHA for ac33c4a
src/transformation/voxelization/voxelized_volume.rs
@@ -167,12 +167,12 @@ impl VoxelizedVolume {
167
}
168
169
#[cfg(feature = "dim3")]
170
- if d[0] > d[1] && d[0] > d[2] {
+ if d[0] >= d[1] && d[0] >= d[2] {
171
r = d[0];
172
result.resolution[0] = resolution;
173
result.resolution[1] = 2 + (resolution as Real * d[1] / d[0]) as u32;
174
result.resolution[2] = 2 + (resolution as Real * d[2] / d[0]) as u32;
175
- } else if d[1] > d[0] && d[1] > d[2] {
+ } else if d[1] >= d[0] && d[1] >= d[2] {
176
r = d[1];
177
result.resolution[1] = resolution;
178
result.resolution[0] = 2 + (resolution as Real * d[0] / d[1]) as u32;
0 commit comments