-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check for adjacent duplicate positions in GroundPolylineGeometry #6693
check for adjacent duplicate positions in GroundPolylineGeometry #6693
Conversation
@likangning93, thanks for the pull request! Maintainers, we have a signed CLA from @likangning93, so you can review this at any time.
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
Just realized this also isn't really sufficient, same lat/long but with different heights will still cause problems. |
@likangning93 yeah, I would just set |
Up-to-date and passing |
Just tested it out in my sandcastle example (#6692) and it seems to resolve the issue! |
Actually, I just encountered another issue @likangning93 . If a user passes a number of points, the I think it would be okay for it to assume you pass at least two points (perhaps with a more descriptive error message), but since it internally filters down this list, I could pass two points, and one gets tossed away, and as a user I wouldn't know what's happening. |
Double check with other geometry, but I believe the official Cesium behavior here would be to simply not draw anything. Otherwise loading external datasets (which are almost always noisy and have issues like this) would be a giant pain for our users. |
@OmarShehata noticed that adjacent duplicates were crashing polylines on terrain.