isah_voodoo Posted August 30, 2020 Share Posted August 30, 2020 hello, 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. intersect_vex.hipnc Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted August 30, 2020 Share Posted August 30, 2020 Hi Matt, I wouldn't take the intersect()-VEX function too literally as it works more like the ray SOP. The intersection analysis SOP is more suitable for finding primitives intersecting with curves. remove_intersect_prims.hipnc Quote Link to comment Share on other sites More sharing options...
hved Posted August 30, 2020 Share Posted August 30, 2020 (edited) you need to loop over intersect rays sent from each prim point and store last one found. konstantin's method is more failsafe. intersect_vex_fix.hipnc Edited August 30, 2020 by hved Quote Link to comment Share on other sites More sharing options...
isah_voodoo Posted August 31, 2020 Author Share Posted August 31, 2020 @konstantin magnus @hved Thank you for the explanation and example files. More clear to me now. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.