-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Filter out duplicate points for Wall Geometry #8842
Comments
@iceye this error is happening not because these two points are close, but because they are exactly the same. You can confirm this in your example by printing out the cesium/Source/Core/WallGeometry.js Lines 465 to 470 in 389770e
I'm not sure there's anything that can be fixed for this on the library side. |
@OmarShehata this is still something CesiumJS should handle by filtering out duplicate points. |
I understand it's an edge case, but when data are collected from an "insecure" system it may happen points are almost the same (0.2-0.3mm difference in my use case). In my test app I added a pre-filter method. It could be interesting to add a global "precision" for Cesium instance (https://en.wikipedia.org/wiki/Decimal_degrees) and automatically optimize filtering and calculation based on that. |
Prob this issue should be also something like: |
Reproduced on local env and Sandcastle
STEP TO REPRODUCE:
WHEN I create a wall entity with this code:
CURRENT BEHAVIOR:
THEN I see normalize error:
EXPECTED BEHAVIOR:
I see my wall ;)
Current workaround:
AVOID points too close for walls. No problems with the polygons, I didn't test with other geometries.
With the workaround for positions it's working fine:
Sandcastle example:
I just tested on https://sandcastle.cesium.com/?src=Wall.html&label=Geometries with my wall
Browser:
Chrome Version 81.0.4044.122
Operating System:
OSX
Additional notes:
The positions array is created with Cesium.Cartesian3.fromDegreesArrayHeights, the 2 points are created from these coordinates:
lat: "45.6333333333333", lng: "13.5", "height": 4000
lat: "45.63333333", lng: "13.5", "height": 4000
I hope this will help
The text was updated successfully, but these errors were encountered: