simple way to retain correct point attr. after resample?

   1624   2   1
User Avatar
Member
108 posts
Joined:
Offline
Hello everyone,

my question this time is about the resample node. Point attributes and point groups get interpolated when resampling which means that attributes that have a specific value on some single points gets spread out across the neighbouring points. I'm searching for a fast and simple way to avoid this issue so that I can, after the resample, retrieve the correct attributes on precisely the same points and only those point, irrespective of what the actual point number is after the resample operation.
Does anyone know of a good method for this?

Help is appreciated, thanks

Dag
User Avatar
Member
69 posts
Joined: Nov. 2021
Offline
you could use attribute copy and connect both the resampled points and initial points to copy based on point number or specified attribute. or use attribute transfer to transfer attributes based on physical distance.
User Avatar
Member
108 posts
Joined:
Offline
@eaniix
Thanks for your previous reply. I realise that my response here is very late. Sorry for that.
I did however finally try out your suggestions yesterday and could not get it to work.
However, since what I needed in this specific case was a simple 0-1 attribute I figured out that if you set the attribute to be a float attribute, set the value to be 1.0 on the points you need, and then resample, the distribution after the resample will be such that only your original points still retain a value of 1.0. All the other points will get a slightly smaller value, diminishing with distance. So, in this particular case you can get away with flooring the value after the resample, and that gets you back to the original state things were in before the resample.

Cheers,
Dag
  • Quick Links