DeBrumaire Posted August 30, 2021 Share Posted August 30, 2021 Hi everyone ! I'm struggling with a little problem. What I have, is a point cloud with an attribute integer "clumpid" (visualized just below). What I want to do, is, for each of the @clumpid values (@clumpid values are from 0 to 5) create an array containing all the points that have the same @clumpid values. For example, for the points that have the @clumpid value at 3, I want to have an array called for instance " i[]@array_3" containing all the points that have the @clumpid value at 3. If possible, I don't want to use the "foreach loop" SOPs. I tried a few things but the closest solution I have is this one: But unfortunately, all the arrays are empty.. Thank you in advance for your replies !! Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted August 30, 2021 Share Posted August 30, 2021 Hi Matteo, you will need these functions in this order: nuniqueval findattribvalcount findattribval Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted August 30, 2021 Share Posted August 30, 2021 Hi, you can convert @clumpid to point groups with partition sop and then expend these groups into arrays with expandpointgroup() vex function. set_array.hipnc 1 Quote Link to comment Share on other sites More sharing options...
DeBrumaire Posted August 30, 2021 Author Share Posted August 30, 2021 Thank you both for you answers it helped a lot ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.