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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
10 hours ago, anim said:

just look up existing ids within hits instead, example

Ohh yeah this is much better, thanks!

Share this post


Link to post
Share on other sites

Wow, thank you very much anim and jamesr !  I really appreciate the help :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×