curve_smooth_adjave

 

Description

Smooth the given curve with Adjacent Average

Syntax

bool curve_smooth_adjave( curvebase & cuv, int leftpts )

Parameters

cuv
[modify] Curve to be smoothed
leftpts
[input] number of points to the left and the right to perform the averaging, 0 = no average

Return

true for success

Examples

EX1

//Before run this example, make sure a curve exists in the active layer.
void curve_smooth_adjave_ex1()
{    
    curve_smooth_adjave(Project.ActiveCurveBase(), 3); // 7 pts smoothing
}

Remark

See Also

header to Include

origin.h

Reference