vector hit_p, hit_uv; vector dir = {0, 1, 0}; int prim = intersect(1, @P, dir, hit_p, hit_uv); if(prim >= 0) removepoint(0, @ptnum);
Unfortunately this deletes ALL points except for several random ones. It even removes points on the very top of the rock. I've tried the same code on a simple setup with two spheres and it works as expected.
Would appreciate the help, I'm familiar with C from college but still learning Vex. I've attached some screens and the hip file (although the rock in the screens I roughed out in Blender and haven't included the .obj but it the rock gen setup works with a cube) Also there's a geo node with the wrangle working correctly on two spheres. Any help much appreciated!