Draw CCTV coverage, viewsheds and the monitor plane through the renderer ports and take projection.js off the Cesium list

The frustum wireframes, viewshed volumes and the active camera's monitor
plane are now line, mesh and quad items of the layer's own draw sets
(layers/cctv/drawSets.js), written from plain handles only as they change.
The plane takes its canvas double buffer or its video as a quad source.
Picks of lines and planes are matched by set, item id and the record that
draws them. The activation obstruction probe casts through the query
port's rayCast; its clamp lands a microtask later, rewrites the geometry
and asks again for the footprint ground, and a newer activation, a range
edit, a deactivation or a re-init drops an answer still to come.
This commit is contained in:
Sameh Khamis committed 2026-11-08 08:35:12 -08:00
1 parent bbad02b73e
commit 2a607ec4d8
20 files changed
+918 -492

No files matched your search

+2
View File
@@ -83,6 +83,8 @@ export function fakeDrawPort() {
lines: make('lines'),
shapes: make('shapes'),
models: make('models'),
quads: make('quads'),
meshes: make('meshes'),
/** Fire a models set's `ready` for an item, as a load finishing does. */
ready(setId, id) {
for (const cb of [...(sets.get(setId)?.ready ?? [])]) cb(id);