The endpoints of the dividing segments should be given in counter-clockwise order, starting from the door.