-
Notifications
You must be signed in to change notification settings - Fork 197
HARP-11531: Look-at bounds for sphere. #1830
Conversation
f2bf35a
to
136feb4
Compare
Codecov Report
@@ Coverage Diff @@
## master #1830 +/- ##
==========================================
+ Coverage 64.67% 64.93% +0.26%
==========================================
Files 286 286
Lines 25782 25902 +120
Branches 5791 5818 +27
==========================================
+ Hits 16674 16820 +146
+ Misses 9108 9082 -26
Continue to review full report at Codecov.
|
42bdddc
to
cf776eb
Compare
].forEach(ray => { | ||
this.addFrustumIntersection(ray, frustum, coordinates); | ||
}); | ||
// There should only be one horizon intersection, if there's 2 take the last one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in what condition would there be two intersections?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw it happening even when theoretically it shouldn't. I assumed it was due to some precision problem when the starting side corner barely hits the world (whether the corner hits the world is decided doing raycasting, and horizon visibility is a completely separated computation in SphereHorizon). Let me revisit that to confirm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So i've confimed what I've said. I've just rewritten the comment to avoid confusion.
cf776eb
to
f210874
Compare
eb1a53e
to
8e7525d
Compare
a058a1a
to
08a1975
Compare
8e7525d
to
3066977
Compare
a51e082
to
6544d01
Compare
6544d01
to
e6999e4
Compare
930f5b4
to
fd76829
Compare
6846272
to
4168f40
Compare
@harpgl-bot retest this please |
@harpgl-bot retest this please |
Sphere projection is supported now. Also fix lint error in BoundsGeneratorTest.
Add support for multiple antimeridian crossings (concave poligons). Only supported for polygon with sides <=180 degrees longitude.
4168f40
to
c41783c
Compare
* HARP-11531: Look-at bounds for sphere. * HARP-11531: Move longitude span calculation to GeoCoordinates. * HARP-11531: Move coordinates wrapping to GeoPolygon. * HARP-11531: Adapt to SphereHorizon interface change in isFullyVisible. * HARP-11531: Adapt screen instructions in bounds generation example. Sphere projection is supported now. Also fix lint error in BoundsGeneratorTest. * HARP-11531: Fix GeoPolygon coordinate wrapping. Add support for multiple antimeridian crossings (concave poligons). Only supported for polygon with sides <=180 degrees longitude. * HARP-11531: Rewrite comment in addSideIntersectionsOnSphere.
Thank you for contributing to harp.gl!
Before requesting a pull request, please remember to check the following documents:
If you are adding new functionality we would highly appreciate if you can describe what is the capability you are adding and even better if you can add some examples. Please also remember to add tests for it.
CI Check
Our bots will check whether your PR can be directly integrated into the mainline. We have some internal integration tests running on the background, our bots will inform you of the next steps and someone from our team will take a look and help if needed!
And please do not forget to sign-off your commit! You can read more about DCO here. But, in short, you just need to use
git commit -s
or append--signoff
when you are committing to the repo.Happy contributing!