Hi all,
I saw two instances of code duplication in ROShorterDistanceAttachPoint so I refactored the class, changed some method names to make their purpose cleaner and added some comments.
@Alexandre: If you like the changes, could you integrate them into Roassal?
The filed out class can be found here:
In a next step I added an offset parameter which can be used to offset the attach point positively or negatively on one of the four possible attach 'sides'.
The purpose of the offset can be seen in the following screenshot:
It allows for example to have multiple edges from and to the same element (with different offsets).
I'm note sure whether you would want the offset-possibility in ROShorterDistanceAttachPoint or if I should create a subclass for it.
If you'd like to integrate it directly, the filed out class with the offset parameter can be found here:
If not I will create a subclass.
Cheers,
Dennis