How do I fill the gap between groups of vertices for 3D printing?
like most things in computer science there's more than one solution 

One way would be to do it by hand. Just extend the thing and boolean it. 
The answer I prefer is to use meshmixer(free) and make solid the two objects. It looks something like this afterwards


Is that what the question was about ?