Remesh SOP and For-Each-Loop issues

   795   1   1
User Avatar
Member
56 posts
Joined: June 2016
Offline
Hi,
I encountered an issue and I am not sure whats going on. If I enable a remesh and put a for-each on connectivity (class attribute) SOP after it the point numbers get scrambled. The strange thing is that this dosn't seem to happen on the basic default sphere mesh, only if I remesh it before the loop.

Can someone say if this is normal behaviour or give me a hint on how to avoid this? I have a scene in production and I stumbled across this. Right now I try to fix it with an enumerate and findattribval, but it seems not to be normal behaviour.

Demo-Scene attached.

Thanks in advance!
Edited by Xue_Yue - April 14, 2021 10:14:00

Attachments:
foreach_remesh_issue.hip (202.4 KB)

User Avatar
Member
56 posts
Joined: June 2016
Offline
Just as addendum, heres the workaround in the wrangle "blendP" if you enumerate "id" before the split:

int newPtnum = findattribval(1, "point", "id", @id);
@P = lerp(@P, point(1, "P", newPtnum), chf("blend"));
  • Quick Links