I tried using the following code in cesium sandcastle to create a spline from Philadelphia to Los Angeles.
//catmulrom spline.
var controlPoints = [
{point: new Cesium.Cartesian3(1235398.0, -4810983.0, 4146266.0), time: 0.0},
{point: new Cesium.Cartesian3(1372574.0, -5345182.0, 4606657.0), time: 1.5},
{point: new Cesium.Cartesian3(-757983.0, -5542796.0, 4514323.0), time: 3.0},
{point: new Cesium.Cartesian3(-2821260.0, -5248423.0, 4021290.0), time: 4.5},
{point: new Cesium.Cartesian3(-2539788.0, -4724797.0, 3620093.0), time: 6.0}
];
var spline = new Cesium.CatmullRomSpline(controlPoints);
It is not giving me any error. And the code seems to be fine. But the spline is not being plotted. Could some one resolve this issue. You can try the code in the site below :-
http://cesium.agi.com/Cesium/Apps/Sandcastle/index.html?src=Hello%20World.html
And reference for CatmullRomSpline can be found here :- http://cesium.agi.com/Cesium/Build/Documentation/CatmullRomSpline.html
Thanks alot in advance
P.S its javascript someone please take a look at it and let me know where I am going wrong at.