SMC_AdaptHelpMarks (FUN)ΒΆ
FUNCTION SMC_AdaptHelpMarks : SMC_ERROR
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.
Note
When a mark is to be adapted to a new path element whose iHelpID array is already full (MAX_IPOSWITCHES) then an error SMC_PATH_MAX_HPOINTS_EXCEEDED is produced
- InOut:
Scope
Name
Type
Comment
Return
SMC_AdaptHelpMarks
SMC_ERROR
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