I'm trying to link points with a spline using Three.js for a visualization I'm trying to make.
As far as I can tell, I add points to an array, pass that to THREE.SplineCurve3, step through the spline points to get the geom coords and render. It works if I only add the start/end points to the array but if I try to add a mid-point, I get an error.
Example is here:
I'm sure it's something simple but I can't spot it - can anyone help me?
Ultimately, the points will be on the surface of a sphere and the splines between 2 points will take the route an aircraft would take - I.E. sort of great circle but further away from the center of the sphere at the midpoint of the spline.
Many thanks in advance.