Jump to content
Sign in to follow this  

intersect function problem

Recommended Posts


I put together a quick test file with a simple line intersecting a grid. My goal is to figure out which primitive the line is intersecting on the grid and then delete those primitives. I wanted to do this with the intersect function. 

 I managed to get it working however when I try and move my line around with a transform before it goes into the wrangle, it stops working. I have no idea why this is happening because my lines are always intersecting the grid so there should always be primitives being deleted. 

If you enable "transform3" in my file, you will see what i mean.

Thank you. 


Share this post

Link to post
Share on other sites
Posted (edited)

you need to loop over intersect rays sent from each prim point and store last one found. konstantin's method is more failsafe.



Edited by hved

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
Sign in to follow this