Skip to content

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

@fraguada

Description

@fraguada

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions