Smoothen contours

Contours are calculated as breaklines but can be smoothed with given values. The minimum length of the contour section, and the angle can be given.

The program checks all the contour lines of the given file. If the line has an acute angle outside the limit given in settings, it will be smoothed by the angle being ‘cut off’. In one round, each angle will be smoothed only once. Rounds can be repeated as many times as required. When angles can no longer be found which require smoothing, the function will stop.

Because contour line are normal breaklines, this function can also be used for smoothing other lines, like for example coastlines. The function can also smooth closed lines.

File

The file selected for contour smoothing.

Selected

Smooth only selected lines.

Loops

Number of smoothing rounds to be performed.

Minimum length

If a line (the space between two points) is below this value, the angle will not be smoothed.

Minimum angle

If an angle is below this value, the angle will not be smoothed.

Corner move

Contour move factor in corners. Value 0.0 cuts inside and value 1.0 goes through original top point.

In above picture original contour calculated from model is brown. Red countour is then smoothed with value 0.0, green countour with value 0.6 and blue contour with value 1.0.