-
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
HeightReference for Box, Cylinder and Ellipsoid #6932
Conversation
Thanks for the pull request @hpinkos!
Reviewers, don't forget to make sure that:
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
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}), |
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.
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).
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 didn't like the way that looked, so I removed the outlines instead
Source/DataSources/BoxGraphics.js
Outdated
@@ -72,6 +74,14 @@ define([ | |||
} | |||
}, | |||
|
|||
/** | |||
* Gets or sets the Property specifying the {@link HeightReference}. | |||
* @memberof EllipsoidGraphics.prototype |
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.
Copy/paste error.
@@ -84,6 +86,14 @@ define([ | |||
} | |||
}, | |||
|
|||
/** | |||
* Gets or sets the Property specifying the {@link HeightReference}. | |||
* @memberof EllipsoidGraphics.prototype |
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.
Copy/paste
Just those comments, like the look of the updated demo. Thanks @hpinkos! |
@mramato ready for another look |
Thanks @hpinkos! One step closer to terrain by default! |
Fixes #6777
Adds
heightReference
property toBoxGraphics
,CylinderGraphics
andEllipsoidGraphics
which can be used to clamp these geometry types to terrain.