Operators |
clip_end_points_contours_xld — Clip the end points of an XLD contour.
clip_end_points_contours_xld(Contours : ClippedContours : Mode, Length : )
The operator clip_end_points_contours_xld clips the end points of an XLD contour. The parameter Mode determines the measure used to determine which part of the contour is clipped.
If Mode = 'length' , the Euclidean length of the part to be clipped is passed in Length. If Mode = 'num_points' , the number of points to be clipped is passed in Length.
The clipped contour is returned in ClippedContours. If all points of the input contour are clipped, no contour is returned. Therefore, the number of returned contours is less or equal to the number of input contours.
Input contour
Clipped contour
Clipping mode.
Default value: 'num_points'
List of values: 'length' , 'num_points'
Clipping length in unit pixels (Mode = 'length') or number (Mode = 'num_points')
Default value: 3
Suggested values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
clip_end_points_contours_xld returns 2 (H_MSG_TRUE) if the input is not empty. The behavior in case of empty input (no input contour available) is set via the operator set_system('no_object_result',<Result>). If necessary an exception is raised.
clip_contours_xld, crop_contours_xld
Foundation
Operators |