One has to first increment the 3D distance before assigning it to the points. When you graph short gpx files you will directly see that the last distance is never incremented and that each distance value does not correspond to the correct elevation value. Placing the increment above assignments of _info.length corrects this issue.
One has to first increment the 3D distance before assigning it to the points. When you graph short gpx files you will directly see that the last distance is never incremented and that each distance value does not correspond to the correct elevation value. Placing the increment above assignments of _info.length corrects this issue.