-
Notifications
You must be signed in to change notification settings - Fork 214
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
Add height-query function to Tileset #783
Changes from 70 commits
509deaa
35eb018
6c97c53
468595a
4a767e9
89f5151
8df6666
530d4c2
98dbde9
053021e
565c255
3f3944b
dd6dece
2f86112
29250be
ce119c5
ec8f8ec
2668014
6bb57cf
1076b4d
7e12ede
82f56eb
0d2a165
5eba1aa
fe35ba3
44b5ea3
c2b47f0
48d1b8b
9690052
07acc3a
73e213b
5f6e9e4
57cf869
7a1eae8
0af2f35
5a0e06e
cc8b03f
7e16171
84493a7
c0f5f18
2accb6a
360154b
68341f6
ef273ac
06c47d8
3be4524
1f77880
852710e
f7450a2
5310d25
1f01f5a
adea293
f270e4d
fbb880b
0a9e745
dcc6c09
349bc22
b7a4244
d9ff8ac
11d9f8e
7c167ee
06d9e79
51a5322
ca62417
5753669
3a37ba1
bc0770a
4850751
f7a75b1
7645a91
23308ba
74acd1a
85226ee
e401f59
352e609
e0323e9
63d6e4d
b48893a
87a4e68
ad18abf
fb38ac9
b56b1a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,42 @@ | ||||||
#pragma once | ||||||
|
||||||
#include <CesiumGeospatial/Cartographic.h> | ||||||
|
||||||
#include <string> | ||||||
#include <vector> | ||||||
|
||||||
namespace Cesium3DTilesSelection { | ||||||
|
||||||
/** | ||||||
* @brief The result of sampling heights with | ||||||
* {@link Tileset::sampleHeightMostDetailed}. | ||||||
*/ | ||||||
struct SampleHeightResult { | ||||||
/** | ||||||
* @brief The positions and sampled heights. | ||||||
* | ||||||
* The longitudes and latitudes will match the values at the same index in the | ||||||
* original input positions. Each height will either be the height sampled | ||||||
* from the tileset at that position, or the original input height if the | ||||||
* height could not be sampled. To determine which, look at the value of | ||||||
* {@link SampleHeightResult::heightSampled} at the same index. | ||||||
*/ | ||||||
std::vector<CesiumGeospatial::Cartographic> positions; | ||||||
|
||||||
/** | ||||||
* @brief Specifies whether the height for the position at this index was | ||||||
* sampled successfully. If true, {@link SampleHeightResult::positions} has | ||||||
* a valid height sampled from the tileset at this index. If false, the height | ||||||
* could not be sampled for the position at this index, and so the height in | ||||||
* {@link SampleHeightResult::positions} is unchanged from the original input | ||||||
* height. | ||||||
kring marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
*/ | ||||||
std::vector<bool> heightSampled; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I read
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually I kind of prefer
|
||||||
|
||||||
/** | ||||||
* @brief Any warnings that occurred while sampling heights. | ||||||
*/ | ||||||
std::vector<std::string> warnings; | ||||||
}; | ||||||
|
||||||
} // namespace Cesium3DTilesSelection |
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.