Skip to content

Conversation

@fstwn
Copy link

@fstwn fstwn commented Aug 6, 2021

Added two new components for adding and retrieving the PointValues attached to the points of a point cloud.
Unforunately, there are a lot of bugs in RhinoCommon at the moment, resulting in a complicated implementation (for now). Once the setter works again, this can be simplified a lot.

For further info on the current bugs see:
https://discourse.mcneel.com/t/clearing-color-from-point-clouds-using-rhinocommon-clearcolors-in-c/125985/5?u=efestwin

fstwn added 8 commits August 6, 2021 14:52
Unfortunately there is no constructor that allows to instantiate a PointCloud with PointValues but without Colors and/or Normals. So we have to use "Dummy" Normals and Colors to re-instantiate the PointCloud.
Usually setting the values to individual points via the setter should work, unfortunately it doesn't at the moment. Another bug is, that ClearNormals and ClearColors won't work properly on PointClouds at the present time. So we'll need to wait for McNeel to fix that and then update this rather complicated procedure to a better one.
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

Successfully merging this pull request may close these issues.

1 participant