Only a quick pointer for now:
- Why does this check happen? Is it because if two points are on opposite side of planet Earth, you don’t know which direction to draw the polyline to?
Probably yes: The error seems to be the same as in Drawing lines to the poles results in error - #2 by Marco13, where I explained the reason and a possible workaround
Regarding the other points: I agree that this could be handled better. The value of 0.0125 seems arbitrary. And when you imagine something like a user interactively clicking positions on the globe, then this error could happen at any point in time, with no reasonable way to handle or avoid it.
(@cesium-cesiumjs : Maybe this should be tracked in an issue. An issue with the same message was coincidentally updated 2 weeks ago, at Incorrect CZML-Corridor behavior · Issue #12501 · CesiumGS/cesium · GitHub , but there, it might only be a detail in an otherwise broader context of CZML handling…)