magneto Posted July 5, 2017 Share Posted July 5, 2017 Hi, I have a grid and for X number of times I want to scatter some points on this grid and then use these new points to point cloud look up the old accumulated/merged scattered points from the previous iterations. In the end I should only end up with the scattered points. So 10 iterations of scattering 1000 points should give me 10000 points and nothing else. I couldn't manage to set this up. Any ideas? Thanks Quote Link to comment Share on other sites More sharing options...
Pazuzu Posted July 5, 2017 Share Posted July 5, 2017 Hi, Here is an approach to accumulate scatter using a for block, I know that is a bit cumbersome, but maybe there is a much better way. Cheers! Alejandro scatterAcum.hip 1 Quote Link to comment Share on other sites More sharing options...
Noobini Posted July 5, 2017 Share Posted July 5, 2017 here's mine...(no meat in the sandwich tho...ie...no lookup logic) vu_ScatAccum.hipnc 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted July 5, 2017 Author Share Posted July 5, 2017 Thanks guys. Alejandro's method works. I don't think vusta's method would work in this case because as far as I know merge iterations don't allow you to access the result of previous iterations. Correct me if I am wrong please. Quote Link to comment Share on other sites More sharing options...
Noobini Posted July 5, 2017 Share Posted July 5, 2017 (edited) disclaimer: i'm a noob stabbing things in the dark... What about this then...you see I've set iteration at 2 cuz that's easiest to 'see' the illustration... - my scatter is set to 100 points per iter - my delete is to delete every 2nd pt of previous generation... So at iter 1, you'd get 100 pts...for 1st gen, delete has no effect cuz there's no 'previous' gen. At iter 2, you get another 100 + half of gen 1 = 150 at iter 3, 100 + 75 = 175....and so on... vu_ScatAccum2.hipnc Edited July 5, 2017 by Noobini Quote Link to comment Share on other sites More sharing options...
Noobini Posted July 5, 2017 Share Posted July 5, 2017 another easy illustration with scale...just play with Iteration vu_ScatAccum3.hipnc 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.