-
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
PolygonGraphics.hierarchy #2353
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3bd27fe
First pass at polygon hierarchy support in data sources.
mramato e711740
Add PolygonHierarchy object to code.
mramato fa45e71
Merge remote-tracking branch 'origin/master' into polygongraphics-holes
mramato 3b43204
Ongoing DataSource polygon hole work.
mramato 48b76c2
Merge remote-tracking branch 'origin/master' into polygongraphics-holes
mramato 292ef18
Merge remote-tracking branch 'origin/master' into polygongraphics-holes
mramato 8ac4e4b
Merge remote-tracking branch 'origin/master' into polygongraphics-holes
mramato 25ceb85
Merge remote-tracking branch 'origin/master' into polygongraphics-holes
mramato 9a4a83b
Merge remote-tracking branch 'origin/master' into polygongraphics-holes
mramato 2f7c4d4
Update CHANGES to be under correct version.
mramato 61efb33
Merge remote-tracking branch 'origin/master' into polygongraphics-holes
mramato 2e393c6
Merge remote-tracking branch 'origin/master' into polygongraphics-holes
mramato a08d048
Changes after review.
mramato 12a1984
Merge remote-tracking branch 'origin/master' into polygongraphics-holes
mramato File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/*global define*/ | ||
define(['./defined'], function(defined) { | ||
"use strict"; | ||
|
||
/** | ||
* An hierarchy of linear rings which define a polygon and its holes. | ||
* The holes themselves may also have holes which nest inner polygons. | ||
* @alias PolygonHierarchy | ||
* @constructor | ||
* | ||
* @param {Cartesian3[]} [positions] A linear ring defining the outer boundary of the polygon or hole. | ||
* @param {PolygonHierarchy[]} [holes] An array of polygon hierarchies defining holes in the polygon. | ||
*/ | ||
var PolygonHierarchy = function(positions, holes) { | ||
/** | ||
* A linear ring defining the outer boundary of the polygon or hole. | ||
* @type {Cartesian3[]} | ||
*/ | ||
this.positions = defined(positions) ? positions : []; | ||
|
||
/** | ||
* An array of polygon hierarchies defining holes in the polygon. | ||
* @type {PolygonHierarchy[]} | ||
*/ | ||
this.holes = defined(holes) ? holes : []; | ||
}; | ||
|
||
return PolygonHierarchy; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Did you mean to assign to
_scrach
too? Its alwaysundefined
.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.
It's actually not needed at all. So I deleted the variable and parameter. Thanks. This is ready.