Create Toposurface from Floor

You’ll have to decide which point to keep if you have similar points with varying Z coordinates, but you can look for points with the same X and Y coordinates with a little filtering.

This piece of a graph is pretty old and was originally wrapped in a custom node so you can probably do some cleaning up but it should get you started.