Sameh Khamis
d51ea4007b
Ask for heights through one service per scene
...
About 20 sites called scene.sampleHeight, globe.getHeight,
scene.clampToHeight or the MostDetailed variants directly, each with its own
idea of a miss (undefined, NaN, a throw). They now ask heightsFor(scene) in
src/queries/heights.js:
- now(point, { against, exclude }) answers from what is loaded, or null;
against is 'surface' (what is drawn) or 'terrain' (loaded terrain only).
- clampNow(position) moves a position onto the drawn surface, or null.
- batch() and clampBatch() wait for the most detailed tiles: null per
missed point, a rejection when the whole query fails.
- supported() reports { surface, clamp } without allocating.
Cesium still answers now() synchronously, so nothing changes on screen and
nothing is slower: in the live app 1,000 calls cost the same through the
service as direct (terrain 0.5-0.7 ms, surface 2-6 ms a call, run-to-run
noise larger than the difference). Every site already treated a miss as
"hold the last value or fall back"; a renderer that can only answer from a
cache or asynchronously can now plug in at one place.
- A Bhote Koshi evidence point whose terrain sample misses stays at its
fallback elevation instead of reading the miss as sea level.
- The mesh floor sampler skips a scene without depth-texture support
instead of spending its budget on probes that throw.
- The world annotation probe's trace reads hit/missed.
- A source scan forbids direct height calls outside the service.
The service is exported as ./queries/heights and documented in
docs/APPLICATION.md.
2026-11-04 09:24:30 -08:00
..
2026-10-19 15:19:07 +01:00
2026-11-04 09:24:30 -08:00
2026-11-04 08:48:51 -08:00
2026-11-04 09:24:30 -08:00
2026-10-29 14:04:11 +00:00
2026-11-03 14:49:54 +00:00
2026-11-04 08:48:51 -08:00
2026-11-04 09:24:30 -08:00
2026-11-01 16:47:39 -08:00
2026-11-03 08:09:00 -08:00
2026-11-04 09:24:30 -08:00
2026-11-04 08:48:51 -08:00
2026-11-01 16:47:39 -08:00
2026-10-30 23:27:17 +05:30
2026-11-04 09:24:30 -08:00
2026-11-02 16:20:08 +00:00
2026-10-22 19:00:40 -07:00
2026-11-03 14:50:23 +00:00
2026-11-02 11:05:08 +05:30
2026-10-29 11:20:49 +00:00
2026-11-03 20:55:09 -08:00
2026-11-03 15:07:08 +00:00
2026-11-03 14:45:32 +04:00
2026-11-04 09:24:30 -08:00
2026-10-29 11:34:19 +00:00
2026-11-04 08:48:51 -08:00
2026-09-12 21:55:18 -07:00
2026-09-24 01:52:41 -05:00
2026-10-22 17:46:57 -07:00
2026-10-31 20:03:17 -07:00
2026-11-04 09:24:30 -08:00
2026-09-28 19:07:57 -05:00
2026-11-04 08:48:51 -08:00
2026-11-04 09:24:30 -08:00
2026-10-22 19:00:40 -07:00
2026-10-22 18:09:37 -07:00
2026-09-15 07:26:32 -07:00
2026-10-22 18:09:37 -07:00
2026-10-31 21:20:27 -07:00
2026-10-29 11:20:49 +00:00
2026-10-31 21:20:27 -07:00
2026-10-16 21:00:28 +04:00
2026-10-16 21:00:28 +04:00
2026-10-22 19:00:40 -07:00
2026-08-24 17:02:16 -05:00
2026-11-03 08:09:00 -08:00
2026-11-03 08:09:00 -08:00
2026-11-03 08:09:00 -08:00
2026-10-31 16:39:08 -07:00
2026-11-03 08:09:00 -08:00
2026-11-03 08:09:00 -08:00
2026-09-23 20:31:56 -07:00
2026-09-23 20:31:56 -07:00
2026-10-29 11:20:49 +00:00
2026-10-29 11:20:49 +00:00
2026-10-27 13:24:02 +00:00
2026-09-15 07:26:32 -07:00
2026-10-22 19:26:09 -07:00
2026-10-16 21:00:28 +04:00
2026-08-24 17:02:16 -05:00
2026-11-01 11:02:39 -08:00
2026-11-01 13:23:51 -08:00
2026-10-02 20:17:21 -07:00
2026-10-22 22:09:37 -07:00
2026-11-01 16:47:39 -08:00
2026-11-01 16:47:39 -08:00
2026-10-31 22:18:50 -07:00
2026-09-23 20:31:56 -07:00
2026-11-03 18:35:12 -08:00
2026-09-23 20:31:56 -07:00
2026-09-23 20:31:56 -07:00
2026-09-23 20:31:56 -07:00
2026-09-14 18:55:24 -05:00
2026-10-16 17:09:03 +05:30
2026-10-25 17:54:16 -07:00
2026-10-19 23:23:52 +01:00
2026-10-22 22:09:37 -07:00
2026-10-31 22:53:03 -07:00
2026-10-31 22:53:03 -07:00
2026-11-03 14:49:54 +00:00
2026-10-31 22:53:03 -07:00
2026-10-27 13:24:02 +00:00
2026-10-19 22:47:25 +05:30
2026-09-16 08:48:31 -04:00
2026-09-16 08:48:31 -04:00
2026-09-21 11:56:33 +02:00
2026-09-12 16:37:04 -07:00
2026-09-11 15:08:23 -07:00
2026-09-21 11:30:49 +02:00
2026-11-03 14:45:32 +04:00
2026-10-30 23:23:58 -07:00
2026-11-02 11:59:08 +04:00
2026-10-31 22:18:50 -07:00
2026-10-29 10:41:58 +00:00
2026-09-23 20:31:56 -07:00
2026-10-16 21:00:28 +04:00
2026-10-16 21:00:28 +04:00
2026-10-29 20:05:03 +04:00
2026-10-31 22:18:50 -07:00
2026-10-28 14:59:33 -07:00
2026-10-31 22:18:50 -07:00
2026-10-31 22:18:50 -07:00
2026-11-02 17:13:58 +04:00
2026-11-03 14:45:32 +04:00
2026-11-03 14:45:32 +04:00
2026-10-22 18:09:37 -07:00
2026-10-28 14:09:56 +00:00
2026-10-28 14:09:56 +00:00
2026-11-01 16:47:39 -08:00
2026-11-01 16:47:39 -08:00
2026-10-19 21:40:40 +05:30
2026-10-16 17:09:03 +05:30
2026-10-16 21:00:28 +04:00
2026-09-21 17:28:23 +02:00
2026-10-16 21:00:28 +04:00
2026-10-16 21:00:28 +04:00
2026-10-16 21:00:28 +04:00
2026-10-31 19:51:39 -07:00
2026-10-21 16:17:37 +01:00
2026-10-02 19:56:42 -07:00
2026-10-31 12:05:19 -07:00
2026-11-04 09:24:30 -08:00
2026-10-20 06:31:50 +05:30
2026-10-22 19:00:40 -07:00
2026-08-24 17:02:16 -05:00
2026-09-15 07:26:32 -07:00
2026-08-24 17:02:16 -05:00
2026-10-27 13:24:02 +00:00
2026-11-01 14:48:31 -08:00
2026-10-31 19:28:02 -07:00
2026-11-01 15:38:23 -08:00
2026-09-13 18:59:29 -07:00
2026-09-13 18:59:29 -07:00
2026-09-13 18:59:29 -07:00
2026-11-02 11:05:08 +05:30
2026-10-30 17:47:52 -07:00
2026-11-02 16:43:29 +00:00
2026-10-16 21:00:28 +04:00
2026-11-02 16:43:29 +00:00
2026-09-28 22:49:23 -05:00
2026-10-27 13:24:02 +00:00
2026-10-27 13:24:02 +00:00
2026-09-15 07:26:32 -07:00
2026-11-02 07:17:39 -08:00
2026-10-16 16:52:01 +05:30
2026-11-01 13:53:31 -08:00
2026-09-12 19:55:02 -07:00
2026-11-02 16:43:29 +00:00
2026-10-16 17:09:03 +05:30
2026-10-25 18:53:32 -07:00
2026-08-31 17:49:45 -05:00
2026-09-14 19:34:23 -05:00
2026-10-23 12:26:41 +01:00
2026-10-20 15:12:33 +01:00
2026-08-24 17:02:16 -05:00
2026-08-24 17:02:16 -05:00
2026-11-02 16:43:49 +00:00
2026-11-01 09:56:47 -08:00
2026-09-15 07:26:32 -07:00
2026-08-24 17:02:16 -05:00
2026-10-30 16:28:08 -07:00
2026-10-30 16:41:29 -07:00
2026-11-02 16:43:39 +00:00
2026-10-25 12:36:50 -07:00
2026-10-25 12:36:50 -07:00
2026-10-26 00:24:27 -05:00
2026-10-26 00:24:27 -05:00
2026-10-26 00:24:27 -05:00
2026-10-24 08:25:42 -07:00
2026-11-01 14:28:02 -08:00
2026-10-26 15:31:51 -07:00
2026-11-01 16:47:39 -08:00
2026-10-26 13:56:19 -07:00
2026-10-31 19:51:39 -07:00
2026-08-24 17:02:16 -05:00
2026-11-01 08:33:18 -08:00
2026-10-24 23:14:55 -07:00
2026-09-14 18:55:24 -05:00
2026-10-14 11:59:14 -07:00
2026-10-29 11:34:19 +00:00
2026-10-14 15:06:52 -07:00
2026-10-14 15:06:52 -07:00
2026-09-15 07:26:32 -07:00
2026-08-24 17:02:16 -05:00