Skip to content

Conversation

@DamienGilliard
Copy link
Collaborator

This tiny PR concerns the color issue that is due to overloading problem:

RhinoCommons has an overloading with two AddRange methods that both thake two lists: one with locations and normals, ans the other with locations and colors. But when using the method with locations and colors, the one with locations and normals is called, triggering an error of conversion between RGB values and vector of doubles.
image

The fix first creates a point cloud with the locations, then adds the colors afterwards. It's a workaround, but it works.
image

@DamienGilliard DamienGilliard linked an issue Sep 19, 2024 that may be closed by this pull request
@DamienGilliard DamienGilliard marked this pull request as draft September 19, 2024 23:22
@DamienGilliard DamienGilliard self-assigned this Sep 19, 2024
@DamienGilliard DamienGilliard added bug Something isn't working backend labels Sep 19, 2024
@DamienGilliard
Copy link
Collaborator Author

NB: actually I gave a wrong name to the issue, CalculateNormals doesn't remove the colors, it adds the normals, and therefore goes around the issue we had. So This PR fixes the issue we had identified, but the issue wasn't exactly correctly identified.
All in all, the issue is solved

@DamienGilliard DamienGilliard marked this pull request as ready for review September 20, 2024 11:36
Copy link
Contributor

@9and3 9and3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@9and3 9and3 merged commit 07c2aef into main Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calculate normals remove the colors of the cloud

3 participants