Skip to content

Commit 6c74f43

Browse files
committed
fix: revert previous attempts at a fix
1 parent 05cc584 commit 6c74f43

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ unsafe fn read_points(py: Python<'_>, filepath: &str) -> PyResult<E57> {
5252
let mut color_vec = Vec::with_capacity(pc.records as usize * 3);
5353
let mut intensity_vec = Vec::with_capacity(pc.records as usize);
5454
let mut nrows = 0;
55-
let intensity_min = pc.intensity_limits.map(|limits| limits.min).unwrap_or(0.0);
56-
let intensity_max = pc.intensity_limits.map(|limits| limits.max).unwrap_or(1.0);
5755
for pointcloud in file.pointclouds() {
5856
let mut iter = file
5957
.pointcloud_simple(&pointcloud)
@@ -74,8 +72,7 @@ unsafe fn read_points(py: Python<'_>, filepath: &str) -> PyResult<E57> {
7472
color_vec.extend([color.red, color.green, color.blue])
7573
}
7674
if let Some(intensity) = p.intensity {
77-
let rescaled_intensity = (intensity * (intensity_max - intensity_min)) + intensity_min;
78-
intensity_vec.push(rescaled_intensity)
75+
intensity_vec.push(intensity);
7976
}
8077
}
8178
}

0 commit comments

Comments
 (0)