In the variable manager [Variable Manager], add the variables SAX, SAY (start side) and EAX, EAY (end side) for entering the mitre angle ; also SDX, SDY, EDX, EDY with status [Status] feature algorithms [Attribute algorithms] as auxiliary variables for calculating the distance plane [Distance plane] (see figure below).
The "End" connection points are created in the same way as described above.