| Algorithm 2: 2D Wall Lines Connection and Refining |
|
Input: 2D Wall Lines in floor plane: Angle threshold: |
| Output: Connection vectors of 2D wall lines: |
| 1: initialize: Random Select one line from 2: Remove from , and add to 3: while is not empty do 4: for do 5: For distance set 6: end for 7: Find line candidate referring to the minimum value in 8: Remove from , and add to 9: end while 10: for do 11: Calculate the angle between adjacent lines: 12: if then 13: Extend lines to obtain intersection point 14: Update the vertexes of 15: else 16: Add one new line between 17: end if 18: end for 19: Return: |