Creating points from line intersections on a Grid?

   4319   2   1
User Avatar
Member
28 posts
Joined: Nov. 2009
Offline
Hello,

So I've got a flat grid and I'm creating lines across the grid that intersect with each other with a clip node. And basically now I want to convert the intersections of those lines to points, but I'm not exactly sure how. I'm still quite new to Houdini, but I assume there's a fairly simple way to do this. Any help would be greatly appreciated. Thank you!
User Avatar
Member
9374 posts
Joined: July 2007
Offline
if you have lines with exactly 2 points merged together and then cut by clip SOP (all lines must be clipped) then just append delete sop, change entity to points, operation to By Expression and put:$PT<$NPT/2 as an expression
this should delete first half of the points, leaving second half which are your intersection points
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
28 posts
Joined: Nov. 2009
Offline
Thanks! Actually, I just found the “answer.”

Since I'm still pretty new to Houdini, I'm still getting use to the way the nodes work and communicate with each other. So basically, all I had to do was pipe the clip node into a scatter node and it pretty much does what I want–which is distributing the points among each one of the primitives that is created with the clip node. The smaller the primitive the more points I wanted, the larger the primitive the less. All of this will be used, hopefully, in a Voronoi fracture node to get a better looking fracture pattern.

Thanks again for the help.
  • Quick Links