Add help view and refine AR tank placement

This commit is contained in:
Dennis Nemec
2026-11-07 18:38:35 +01:00
parent 7fa162c910
commit a343bde741
25 changed files with 250 additions and 49 deletions

View File

@ -42,6 +42,29 @@ struct TankModelSelectionTests {
}
}
@Test func everyVariantHasItsMeasuredDomeCenter() {
let expected: [String: Float] = [
"DG-2700_wh.usdz": -0.426,
"DG-2700_mi.usdz": -0.426,
"DG-2700_ol.usdz": -0.498,
"DG-4850_wh.usdz": -1.317,
"DG-4850_mi.usdz": -1.317,
"DG-4850_ol.usdz": -1.395,
"DG-6400_wh.usdz": -1.939,
"DG-6400_mi.usdz": -1.939,
"DG-6400_ol.usdz": -2.018,
]
let definitions = Self.bundleCatalog().definitions
#expect(definitions.count == expected.count)
for definition in definitions {
let measured = expected[definition.modelPath]
#expect(measured != nil, "Kein Domschachtmaß für \(definition.modelPath)")
if let measured {
#expect(abs(definition.domeCenterX - measured) < 0.001)
}
}
}
// MARK: - Auswahl → richtige Datei
@Test func aboveGroundColorsMapToExpectedFiles() {