This stuff does not work because generates too much points.
In progress, doing linear interpolation for generated points.