FUNCTION SMC_AdaptHelpMarks : BOOL
Adapts the help marks if a new element has been inserted between two existing elements. The help marks are moved to the new element if they no longer fit on the cut first and second object. This is done so that the following constraints are met, where the second constraint beats the first one if both cannot be met:
The distance of the h-function stays the same as for the original (uncut) elements. For the first element, the distance is measured from the start point. For the second element, the distance is measured from the end point.
The h-function is moved no further than to the middle of the new element.
Note
Note that constraint 2 makes sure that the order of h-functions does not change compared to the original elements.
InOut:
Scope |
Name |
Type |
Comment |
Return |
SMC_AdaptHelpMarks |
BOOL |
|
Inout |
gi1 |
The first element |
|
giN |
The new element |
||
gi2 |
The second element |
||
Input |
l1Orig |
LREAL |
The original length of the first element |
l2Orig |
LREAL |
The original length of the second element |