CesiumGS / CesiumGS/cesium

PolylineGeometry angled strangely when crossing the Prime Meridian

Open
#7,279 0 comments 0 reactions 0 assignees View on GitHub
category - polyline type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

A PolylineGeometry with two positions and `followSurface` set to false gets angled strangely when it cross the Prime Meridian. This goes back at least as far as 1.33.

[Demo](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/#c=fVNrb9owFP0rEV8aJGbAsfNoKRpitKoEoypVt2mZJpOYYtWxke3A2MR/nwOEBDrNn+7rHN9zr70mylkzuqHKuXUE3ThDqlmegZd9zL1K9u5QCkOYoOqqeROLWKwtaiU1M0wKbYHfY+HYU8MPiTLWIsJzYRR1fYwA9COEMApwy/kAMYx8GADkdWHohzhoObjT9aGHQNcLoiAMUdhs/Y8Vw6CDfOCjDowQxiFqOQh3sRcGwMORB6GltyHkezCCAIe+53V85BekP04aXqnMqFHbc+2Pkm+5VXt/zLp/Do1Uiq8r+9jkhqVmaeP46K+p7fTXnVQZMTZ8wTwhhipG+GC1okQRkVDwMnp6Hn39eTd9mgyejyQLybnczHK1IAm1LAvCNY3FrloCORH8W8JQcqmqW9za+hTLrIL1JbAMl6LLET0IbQqKQnyt/v4iXcLqUIsozVaVJcYoNs/NnrGGKk5StF2Nba/i8qZBiQcLJbN9iVuvB99G4/H0S7Ni3h3MXfmwasO7rjllVm9FslRSyFyXsy9TxVoeWfLGxOv7tex/DtAJFRScpqwBSVP35BalZ4WZTItNHAXMitjEhsBsOPo8gp9uGq1GT5stp/1DCx9ZtpLKOLniLgBtQ7MVt49Kt+d58kYNSLQu7ui1S1AvZWuHpbdx4+JLxw0n4URrm1nknM/Ybxo3+r22rT+DcUlSq3dqXzYn26Jk2e2PD0EAQK9t3fcoIyWfE1Vj/As)

angled

`followSurface : true` works fine and gives a hint as to what's going on above.

curved

Contributor guide

Open the contributing guide

Research direction

Start by opening the linked Sandcastle demo and tracing PolylineGeometry with two positions crossing the Prime Meridian, comparing followSurface=false with true. Confirm the angled result and use the issue's expected straight behavior as the regression target; no source file or test is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.