Skip to content

Efficient line smoothing using connected 3rd degree polynomials

Notifications You must be signed in to change notification settings

kim366/Polynomial-Line-Smoothing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polynomial Line Smoothing

screenshot

In this repository is a C++ & SFML implementation of my polynomial line smoothing algorithm. The basic gist is to draw function graphs of the polynomial f(x) = ax^3 + bx^2 + cx where a = slope_begin + slope_end, b = -2.f * slope_begin - slope_end and c = slope_begin.

The slopes are calculated from the angle between each line segment and the neighboring vertex normal.

After the function graph has been calculated it is rotated, so that the current line segment represents its x-axis.

About

Efficient line smoothing using connected 3rd degree polynomials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published