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

Fix normal calculation for CylinderGeometry #6863

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

felixpalmer
Copy link
Contributor

The calculated normals of the curved side of the cylinder are wrong when the bottom and top radius are not equal, as the code assumes that the normal is always at right angles to the cylinder axis. This commit handles the more general case where the radii at the ends of the cylinder are not equal.

The calculated normals of the curved side of the cylinder are wrong when the bottom and top radius are not equal, as the code assumes that the normal is always at right angles to the cylinder axis. This commit handles the more general case where the radii at the ends of the cylinder are not equal.
@cesium-concierge
Copy link

Thank you so much for the pull request @felixpalmer! I noticed this is your first pull request and I wanted to say welcome to the Cesium community!

The Pull Request Guidelines is a handy reference for making sure your PR gets accepted quickly, so make sure to skim that.

  • ❌ Missing CONTRIBUTORS.md entry.
  • ❌ Missing CLA.
  • CHANGES.md was not updated.
    • If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@hpinkos
Copy link
Contributor

hpinkos commented Jul 31, 2018

Good catch @felixpalmer, thanks! I'll review this as soon as you send over your CLA. Instructions for doing so can be found in the cesium-consierge comment above

@hpinkos
Copy link
Contributor

hpinkos commented Aug 1, 2018

Thanks, we've received your CLA

@hpinkos
Copy link
Contributor

hpinkos commented Aug 1, 2018

Looks great! I can confirm the normals/tangents/bitangents are all in the right place for the sides of the cylinder now.

@felixpalmer can you add yourself to CONTRIBUTORS.md and add a note to CHANGES.md? After that this should be good to go. Thanks again!

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 3, 2018

Thanks again @felixpalmer, we received your CLA.

@hpinkos
Copy link
Contributor

hpinkos commented Aug 30, 2018

Thanks again for the contribution @felixpalmer! I'll add a comment to CHANGES and CONTRIBUTORS in master

@hpinkos hpinkos merged commit 4cdf9bc into CesiumGS:master Aug 30, 2018
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.

4 participants