In my search for this topic in the forum I found some posts that were close, but not quite what I'm looking for. (There was an interesting one about tiling roofs, for instance.) My apologies if I've missed the answer.
My problem is that I have two surfaces -- a little one and a target one. The little one (in green) sits "above" the target one.
I want to project the little surface onto the target surface in the direction of the surface normals. I am clearly not understanding how to do this. I've tried 4 different methods.
The first is to project the little surface straight down using a ray SOP with a vector. This works robustly but in areas of steep slopes, it cuts short the resulting surface.
The second uses a ray SOP to project from the little surface to the target surface using the normals of the little surface. But I get horrid results.
The third tries to project from the target surface up to the little surface using a ray SOP and the target surface normals, and then separate out the points that hit. This is even more horrid.
The fourth does a vdbfrom particles on the little surface with the particle radius large enough to intersect with the target surface. I then convertvdb to polygons and do a Boolean intersection to get the resulting surface. This too is robust, but the resulting surface extends past where I'd like it too, due to the radius of the particles.
Does anyone have suggestions about what I should be doing to get better results? The surfaces.hip file is at the bottom of this post. I have no idea why the images are included again, sorry...
Thanks you so much,
Mary