Questions on Resample node

   98   1   1
User Avatar
Member
25 posts
Joined: Feb. 2023
Offline
Hi. I am using a shortest path node and a fuse node afterwards, which leaves me with 1600 points on the mesh. When I add a resample node with everything inactive (I use it only to get the curveu attribute), the points increase to 260k.

Why do I get an increase in points when no resampling option is active? The viewport does not show any visible change.




The second question is in regards to activating the resampling options of the node:


You can notice that I get overlapped edges, almost like a spiderweb at some mesh areas.
I am not sure why resampling contributes to overlapping edges when the original mesh "looks" clean; I am just trying to increase equidistant points, but I get an irregular distribution of points with multiplication of edges on top of each other.

Is it possible that the shortestpath + fuse displaying clean edges does not show that I have several overlapping edges, and when I resample, they become visible?

Thank you
Edited by zooropa - yesterday 13:09:28

Attachments:
houdini resample_2.jpg (324.7 KB)
houdini resample.jpg (432.2 KB)

User Avatar
Member
8833 posts
Joined: July 2007
Offline
zooropa
Is it possible that the shortestpath + fuse displaying clean edges does not show that I have several overlapping edges, and when I resample, they become visible?
This is exactly what causes both of your issues

Shortest path is likely to produce overlapping paths especially because many paths end up travelling through the same edges before eventually diverging

Fuse just fuses the points but the amount of curves will not change so the overlapping segments prevail

Resample even without resampling likely makes points unique per curve to be able to store curveu since if points are shared among multiple curves then a single point would have to store multiple different curveu values

So to clean up your geo you can append Convert Line SOP + Poly Path SOP after your Fuse
That will make sure each path is a single curve at least up to the branching point

Then Resampling to should behave better
But instead of using Resample to also compute curveu, I'd recommend Edge Transport, to get some real distance attribute for curve network rather than notmalized curveu per curve as those will be just segments between branching points
Edited by tamte - yesterday 14:33:07
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links