-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Primitive exception for empty rectangle #2657
Comments
If you change this: rectangle : Cesium.Rectangle.fromDegrees(-100.0, 30.0, -100.0, 30.0) to this: rectangle : Cesium.Rectangle.fromDegrees() I believe that you get the same error. So should we also not allow the parameters to be optional? Or should I just add and if check: |
Leave We should check the other geometries too, e.g., if all sides of a box have length zero, etc. |
Gotcha, thanks. |
Fixed in #3599 |
Run the following in Sandcastle:
Note that the rectangle's
![image](https://cloud.githubusercontent.com/assets/782098/7274429/a73cc7ce-e8ca-11e4-81dc-9fb1833be4d8.png)
west === east
andsouth === north
.This is not an exceptional case. We should just render nothing. I suspect there is a similar issue in
RectangleGeometry
and probably most geometries.@bagnell can you have a look after we finish billboards/labels on terrain?
The text was updated successfully, but these errors were encountered: