Can't get these points sorted

   1935   4   0
User Avatar
Member
228 posts
Joined: Dec. 2012
Offline
Hey, does anyone know how to get these points sorted they way I numbered them in the rightmost image?

By looking at the leftmost image, it seems like you could use the neighbour() function in vex to walk around the primitive and sort the points. However, as you can see in the wire frame view, houdini is connecting invisible edges in between 5/6 and 7/8, so the neighbour() function thinks those points are connected.

Does anyone know how to get them sorted or at least delete those invisible edges so that the neighbour function gives me the ordering I'm looking for?

(sorry for the large image, need to keep the image large enough for you to be able to read the point numbering)

Attachments:
sortORder.jpg (233.9 KB)

www.kmcnamara.com
User Avatar
Member
4189 posts
Joined: June 2012
Offline
can you try SortSop or upload the object.

Thanks!
User Avatar
Member
228 posts
Joined: Dec. 2012
Offline
Hey Marty, I have tried a handful of options on the sort SOP but haven't gotten anything that works yet.

Here's the file, any suggestions would be appreciated.

Thanks!

Attachments:
sortProblem.zip (953 bytes)

www.kmcnamara.com
User Avatar
Member
4189 posts
Joined: June 2012
Offline
Like this? DivideSop with some settings

Edit: updated .hip with more nodes

Attachments:
PointSort.png (341.9 KB)
sortProblem_edit2.hip (58.5 KB)

User Avatar
Member
228 posts
Joined: Dec. 2012
Offline
Very nice, thanks a bunch!
www.kmcnamara.com
  • Quick Links