How to connect random points

   2504   4   0
User Avatar
Member
27 posts
Joined: Oct. 2018
Offline
Hi.

I'm trying to connect random points and make polyline by using near point function with iterations.
but, I can't.

This pic is my script.
Could you give me advice?

User Avatar
Member
436 posts
Joined: July 2005
Offline
Add SOP. Just enter $PT numbers to create a polygon.
User Avatar
Member
27 posts
Joined: Oct. 2018
Offline
Hi,Dave.

I'm sorry,I'm begine.
I'm beginner.
so,could you tell me more information?

This pic is what I want to do.
Thanks.

Attachments:
S__311299.jpg (59.6 KB)

User Avatar
Member
436 posts
Joined: July 2005
Offline
Turn on DISPLAY POINT NUMBERS in right column of scene view. Then enter those numbers into ADD SOP. I think, you can also preselect them in desired order then drop an ADD SOP node via TAB inside scene view. Press ENTER, and ADD SOP should now have point list with toggle switch for Closed/Open. If you opt for CLOSED, Houdini will create a poly out of those points. If left OPEN, you'll get a polyline.
User Avatar
Member
2038 posts
Joined: Sept. 2015
Offline
You can use the near point function like in this hip.

You don't have to specify the points you want.

Just the starting point, radius distance to search, and how many points to search for ( all with the 3 parameters on the wrangle node colored red).

Attachments:
ConnectPtsOneLine_v0.hiplc (75.3 KB)

  • Quick Links