Using the geometry, will give all the lines in the floor. This is how i do it in the existing tool.
The case of just getting the boundarys is a bit more tricky..
I will have a deeper look into it in a couple of weeks, se if I can map things a bit together..
Daniel