smooth polyline

Recently I have started using cesium and we wanted to trace the particles, so we plotted polyline using latitude, longitude and altitude. The polyline drawn in cesium is more interconnected by lines rather than a smooth curve. Can you please guide me what function to use?