Subdivide brush for basemesh?

Hi,

I have a 3D scanned model of some wooden planks that has some nails that sticks out. When I wrap a basemesh onto the scan, it follows the contours of the planks nicely, but it’s unable to wrap around the nails. I assume that’s because the basemesh is too low resolution. Is there any way to decimate the basemesh just where the nails are and recalculate those areas to make it wrap around them?

Thanks!

I’ve tried to set up some nodes to do this, but now I get the error “Subset topology does not match the combination of full topology and polygonal selection”. How can I replace the selected polygons with the subdivided ones so that I can feed the modified basemesh into my wrapping node setup?

To clarify, what I’m trying to do is the following: I want to select parts of the basemesh and subdivide these parts. I want to do that because those subdivided parts will wrap onto more detailed areas of the full resolution scanned model.