Add Tileset::sampleHeightCurrentDetail
For my use case, I'd like to have a method Tileset::sampleHeightCurrentDetail which would work similarly to Tileset::sampleHeightMostDetailed except that it operates synchronously and derives the answer from whatever LOD is currently loaded in the tileset rather than progressively loading the tileset down to the finest level of detail. Does that functionality already exist somewhere in Cesium Native? If it doesn't already exist, is that a feature that would be desirable to add? If it would be desirable, would you be interested in a pull request for it? (I'm going to implement it myself regardless, but I'm wondering if it's worth the extra effort to turn it into a proper PR.)
Hi @ELeeScape,
That kind of function doesn't currently exist, but it sounds like it would be useful! We were actually working on a similar feature that "clamps" objects to the ground at any / all levels of detail. The idea is that objects with that clamp setting could automatically readjust their positions depending on height at that current level of detail.
I don't know if that feature would completely align your use case, but there could be some overlap. All that to say, we'd certainly welcome a PR, even if draft, to see if we could incorporate that solution. 😄