This was because the size and bounds of points were not properly checked in some places. Additionally, the smoothing algorithm should only be run if the smoothing window is larg enough.
This was because the size and bounds of points were not properly checked in some places. Additionally, the smoothing algorithm should only be run if the smoothing window is larg enough.