domain (Domain) – Domain of which the border is part of.
border (Border) – The border to integrate.
neighbor_border (Border) – Border of the neighboring domain.
direction (bool) – True of border is the right border of the domain,
False if it is the left border.