Skip to content
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

Ellipsoid Tangent Plane #1150

Merged
merged 1 commit into from
Sep 16, 2013
Merged

Ellipsoid Tangent Plane #1150

merged 1 commit into from
Sep 16, 2013

Conversation

bagnell
Copy link
Contributor

@bagnell bagnell commented Sep 13, 2013

Fix ellipsoid tangent planes for ellipsoids other than the unit sphere. See the discussion in #1121.

@mramato
Copy link
Contributor

mramato commented Sep 14, 2013

This partially fixes #620, but I'm not sure the resulting polygon is rendering correctly. You might want to check that out too (sample code in the biug)

@@ -119,6 +118,10 @@ define([
Cartesian3.normalize(cartesian, ray.direction);

var intersectionPoint = IntersectionTests.rayPlane(ray, this._plane, projectPointOntoPlaneCartesian3);
if (!defined(intersectionPoint)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it is obvious, but you'll have to explain this to me. How does switching the ray's direction help?

@pjcozzi
Copy link
Contributor

pjcozzi commented Sep 16, 2013

@mramato this won't fully fix #620. I'm pretty sure we can't fix that using a tangent plane; we'd need to do something like surround the globe with a cube, and then unfold it. Not happening right now.

@pjcozzi
Copy link
Contributor

pjcozzi commented Sep 16, 2013

@bagnell explained it to me. We're good here.

pjcozzi added a commit that referenced this pull request Sep 16, 2013
@pjcozzi pjcozzi merged commit e95ed40 into master Sep 16, 2013
@pjcozzi pjcozzi deleted the tangentPlane branch September 16, 2013 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants