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

HeightReference for Box, Cylinder and Ellipsoid #6932

Merged
merged 7 commits into from
Aug 22, 2018

Conversation

hpinkos
Copy link
Contributor

@hpinkos hpinkos commented Aug 17, 2018

Fixes #6777

Adds heightReference property to BoxGraphics, CylinderGraphics and EllipsoidGraphics which can be used to clamp these geometry types to terrain.

@cesium-concierge
Copy link

Thanks for the pull request @hpinkos!

  • ✔️ Signed CLA found.
  • 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 hpinkos requested a review from mramato August 17, 2018 21:22
position: Cesium.Cartesian3.fromDegrees(west, north, 0.0),
box : {
dimensions : new Cesium.Cartesian3(40.0, 30.0, 50.0),
material : Cesium.Color.fromRandom({alpha : 1}),
Copy link
Contributor

Choose a reason for hiding this comment

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

The outlines look pretty bad to me because of the opaqunesss, can we set alpha .9 here and add .withAlpha(0.9) to the outlineCloud below? (or just get of outlines).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't like the way that looked, so I removed the outlines instead

@@ -72,6 +74,14 @@ define([
}
},

/**
* Gets or sets the Property specifying the {@link HeightReference}.
* @memberof EllipsoidGraphics.prototype
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy/paste error.

@@ -84,6 +86,14 @@ define([
}
},

/**
* Gets or sets the Property specifying the {@link HeightReference}.
* @memberof EllipsoidGraphics.prototype
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy/paste

@mramato
Copy link
Contributor

mramato commented Aug 20, 2018

Just those comments, like the look of the updated demo. Thanks @hpinkos!

@hpinkos
Copy link
Contributor Author

hpinkos commented Aug 22, 2018

@mramato ready for another look

@mramato
Copy link
Contributor

mramato commented Aug 22, 2018

Thanks @hpinkos! One step closer to terrain by default!

@mramato mramato merged commit 48f226b into master Aug 22, 2018
@mramato mramato deleted the entity-height-reference branch August 22, 2018 20:28
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