Skip to content

Commit 8ba4aff

Browse files
authored
Merge pull request weigao95#20 from initialneil/patch-2
remove duplicated * 1000
2 parents ea13639 + a314e2d commit 8ba4aff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/data_transfer.cu

+3-3
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ PointCloud3f_Pointer surfelwarp::downloadPointCloud(const DeviceArray2D<float4>&
207207
size_t valid_count = 0;
208208
setPointCloudSize(point_cloud, total_size);
209209
for (int idx = 0; idx < total_size; idx += 1) {
210-
float x = host_ptr[idx].x * 1000;
211-
float y = host_ptr[idx].y * 1000;
212-
float z = host_ptr[idx].z * 1000;
210+
float x = host_ptr[idx].x;
211+
float y = host_ptr[idx].y;
212+
float z = host_ptr[idx].z;
213213
if (std::abs(x > 1e-3) || std::abs(y > 1e-3) || std::abs(z > 1e-3)) {
214214
valid_count++;
215215
}

0 commit comments

Comments
 (0)