Add help view and refine AR tank placement
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user