Ground snapping and mesh floor sampling through the renderer ports, off the Cesium list

src/services/groundSnap.js and src/services/meshFloorSampler.js no longer
reach Cesium. Whether the surface has streamed comes from the globe port
(the snap waits for the 'tiles' and 'surface' settle kinds; the sampler
runs only with the globe hidden and 'surface' settled), the camera height
gate from camera.pose(), heights from the query port, and the maths from
src/geo/ellipsoid.js. The raw exclusion path is gone: callers see through
their own draw sets by id. Cockpit's ground probe names the tracked
contact's icon and model sets, which the flights and military layers keep
on its entity record (groundSets), instead of the tracked holder object.

Probing is unchanged: at the caller's point, up to eight readings per cell
about 17 m apart, a read answering from the nearest one.

The application operations entry is now Cesium-free: a viewer with no
renderer bound needs ./render/cesium/unbound loaded first. Tests that used
to get the adapter's factories through ground snapping load it themselves.
This commit is contained in:
Sameh Khamis committed 2026-11-09 01:55:36 -08:00
1 parent 9d4e438e63
commit f53f691a80
20 files changed
+296 -199

No files matched your search

+10
View File
@@ -1148,6 +1148,16 @@ Red Line trains on the Longfellow Bridge 6–9 m under the deck. Residual: the
probe is vertical, so a vehicle directly under a deck or a roof overhang reads
the structure above it.
The sampler and the aircraft ground snap (`src/services/groundSnap.js`) reach
the renderer only through its ports: the camera's `pose()` for the probe
height gate, the globe's `isGlobeVisible()` (the sampler runs only with
the globe hidden) and `isSettled('surface')` (sampler) and
`isSettled('tiles')` with `isSettled('surface')` (snap) for whether the tiles
have streamed, and the query
port's heights, seeing through the caller's draw sets by id. Cockpit's ground
probe names the tracked contact's icon and model sets, which the flights and
military layers keep on its entity record (`groundSets`).
## Vessel components and sources
`src/data/aisLiveVessels.js` assembles `createVesselLayer` from the