-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '3dtiles-voxel-content' into tilers-lilleyse
- Loading branch information
Showing
25 changed files
with
1,445 additions
and
237 deletions.
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
44 changes: 44 additions & 0 deletions
44
Cesium3DTilesSelection/include/Cesium3DTilesSelection/SampleHeightResult.h
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,44 @@ | ||
#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 their sampled heights. | ||
* | ||
* For each resulting position, its longitude and latitude values will match | ||
* values from its input. Its height will either be the height sampled from | ||
* the tileset at that position, or the original input height if the sample | ||
* was unsuccessful. To determine which, look at the value of | ||
* {@link SampleHeightResult::sampleSuccess} at the same index. | ||
*/ | ||
std::vector<CesiumGeospatial::Cartographic> positions; | ||
|
||
/** | ||
* @brief The success of each sample. | ||
* | ||
* Each entry specifies whether the height for the position at the | ||
* corresponding index was successfully sampled. If true, then | ||
* {@link SampleHeightResult::positions} has a valid height sampled from the | ||
* tileset at this index. If false, the height could not be sampled, leaving | ||
* the height in {@link SampleHeightResult::positions} unchanged from the | ||
* original input height. | ||
*/ | ||
std::vector<bool> sampleSuccess; | ||
|
||
/** | ||
* @brief Any warnings that occurred while sampling heights. | ||
*/ | ||
std::vector<std::string> warnings; | ||
}; | ||
|
||
} // namespace Cesium3DTilesSelection |
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.