List of connected points in python

   2832   3   2
User Avatar
Member
700 posts
Joined: 3月 2009
Offline
I'm basically looking for something with a similar functionality to the Neighbor VOP.
I want to traverse an open curve starting from one side so that I can re-sort point numbers in a sequential fashion.
Can I access a tuple of points connected to one specific point using python?

Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
1922 posts
Joined: 11月 2006
Offline
Sadly HOM provides no functionality for getting any connectivity information. You basically have to build your own based on the vertices per primitive and their referenced points.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
184 posts
Joined: 6月 2010
Offline
Quickest way would be to group the curve into an edgegroup and process the points for every edge.

The attached otl from an older post counts neighbouring points… look under the “## process points ###” heading.

Attachments:
TopologyTest.010.otl (10.7 KB)

User Avatar
Member
9 posts
Joined: 11月 2006
Offline
Sort SOP: Point Sort->By Vertex Order
is what I normally use for curves.
  • Quick Links