Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fraguada opened this issue Jul 5, 2021 · 1 comment

Comments

@fraguada
Copy link

fraguada commented Jul 5, 2021

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

@9and3
Copy link
Owner

9and3 commented Jul 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants