Smoothing weighted by attribute

   2082   2   0
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
Anyone know a way in sops to smooth by attribute. Id like to use a point or prim attribute as a weight to be multiplied against the smoothing function of the smooth sop, or against the filter of the particle fluid surface sop. Any thoughts on how to do this? I was thinking that worst case scenario I could build a smoothing vopsop, but this would take me quite some time to figure out how to do correctly.

If the vopsop is the only or best approach.. how would you do this? Should I use a point cloud and filter P for the closest n points and then set their new P to the product of the average and each points weight? Not really sure how this would work because the filter would filter points by distance even though they may not be the closest connected.

Any help would be greatly appreciated.

zak
.
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
So after giving his more thought I think what I need to do is for each point look at the 4 points connected to it and then move it in its remaining axis. Pretty sure this is quickly escaping my ability to solve.. (
.
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
Figured out a work around to do this. Does what I want but not sure if its as efficient as it could be. Posting it here in case anyone ever runs into this.

zak

Attachments:
smooth.hipnc (92.6 KB)

.
  • Quick Links