test(qa): floor verification reads the app's ground floor and measures models where drawn

- The DEM prior column read a fresh import of src/data/groundFloor.js, a
  module the app does not use for its layers (they read the scene's
  surface services), so it was null for every contact. It now reads
  window.__godsEyeView.surfaceServices.groundFloor. The terrain proxy
  answers 200 and the AUS cells resolve within one or two polls (123-128 m);
  the "proxy 503" reading in the task-11 report was this misread.
- A contact a 3D model draws is measured at the model's translation (the
  probe's drawn() reports it now): its sprite is hidden and keeps the
  pre-floor height by design (T7), so measuring the sprite reported a
  buried aircraft that is not drawn.
This commit is contained in:
German Khokhlov committed 2026-10-17 11:02:52 +04:00
1 parent ed9ea7e679
commit 5ff8c5d7a6
2 files changed
+28 -3

No files matched your search

+7
View File
@@ -9,6 +9,11 @@
* handle), `_models` (id → model handle), `_trackedIcao`, `_trackedModel`.
* @returns {Array<object>}
*/
const translationOf = (matrix) =>
matrix && Number.isFinite(matrix[12])
? { x: matrix[12], y: matrix[13], z: matrix[14] }
: null;
export function aircraftQaDrawn(state) {
const out = [];
for (const [id, sprite] of state._billboards) {
@@ -36,6 +41,8 @@ export function aircraftQaDrawn(state) {
computedScale: model.computedScale,
show: model.show,
ready: model.ready,
// Where it is drawn: its transform's translation.
position: translationOf(model.modelMatrix),
}
: null,
});