Jump to content

Recommended Posts

Hi, I've been trying for a couple of hours to get my array points into a group. 

The idea is that I want to delete every face that is not colliding with a ray/line (first collision/one collision point per face). I used "intersectionanalysis", which gave me the points and faces I want to preserve but now I'm not able to group those array points or blast them any other way. 

Please let me know if you have an idea. 
Thanks :)

Capture.PNG

raycollisionTest.hip

Link to comment
Share on other sites

18 minutes ago, jamesr said:

Here's a solution:

the left side does it one wrangle, the right side groups, colors and deletes

raycollisionTest_jr.hip

be careful when looping over all intersected points per primitive especially with idtoprim() type of functions which have to iterate internally a bit too, it will get painfully slow with higher res geo and more intersections

just look up existing ids within hits instead, example

raycollisionTest_ts.hip

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...