I have a collection of floor-plans as SVG. Bad ascii art follows
Room walls are SVG paths like this (door added separately, but a room can be defined as an enclosed path.
+--------------------+--------------------+
| | |
| Room 1 | Room 2 |
| | |
| / | / |
+--/-----------------+-/------------------+
And I want to make them like this
+--------------------++--------------------+
| || |
| Room 1 || Room 2 |
| || |
| / || / |
+--/-----------------++-/------------------+
with no adjoining walls. The reason being that I want to be able to detect a click within a room when the floor-plan is displayed.
Woudl it be on topic to ask for an algorithm which I could code to preform the conversion?