Cockroach icon indicating copy to clipboard operation
Cockroach copied to clipboard

"Point values" are not carried over after Box Crop and Compute Normals

Open fraguada opened this issue 4 years ago • 1 comments

Hello! I have been using this plugin to process some LiDAR data I am getting from the ICGC and am glad to have some tools right in GH.

I first open the .laz files in Cloud Compare and export them to .e57. I then import into Rhino and use the Cockroach GH tools to crop, merge, mesh, etc. The lidar data includes intensity values assigned to each point. I can use this, for example, to assign a greyscale color to the point cloud which represents this intensity value.

When I use Box Crop of Cloud Normals components the resulting point cloud no longer has these Point Values. With other components, like Cloud Merge, the Point Values are carried over.

For example, the Box Crop component passes location, normal, and color to the cropped cloud, but not the Point Values: https://github.com/9and3/Cockroach/blob/Cockroach/CockroachGH/Cleaning/CloudBoxCrop.cs#L116

My suggestion is to add these values by using the AddRange overflow which allows the 4th argument: https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_PointCloud_AddRange_3.htm

fraguada avatar Jul 05 '21 08:07 fraguada

Hello @fraguada , thanks for the feedback and suggestion, we will definitely have a look into that. Indeed, what you are mentioning are most probably the radiance values that are not carried over in some methods. We will add this to the revision list.

9and3 avatar Jul 05 '21 09:07 9and3