[285] Gesamthöhe zählt die Attika; Befundliste Referenz-Ablauf (zweiter Durchlauf), Prüfbilder

Referenz-Ablauf WBW zum zweiten Mal im Browser durchgespielt (Chromium/Linux): Befunde in TODO.md, Bilder in doc/review-285. Test roof_parapet::gesamthoehe_enthaelt_die_attika; cargo test --lib im Kern grün (2003). Nicht auf dem Mac geprüft.
This commit is contained in:
Claude committed 2026-11-18 12:45:56 +00:00
1 parent aeb3e032be
commit 6334a3ddcf
6 files changed
+16 -2

No files matched your search

+8
View File
@@ -176,6 +176,14 @@ mod tests {
}
}
/// [285] Die Gesamthöhe (Baurecht, Kennzahlen) reicht bis Oberkante Attika, nicht nur bis zur Dachhaut.
#[test]
fn gesamthoehe_enthaelt_die_attika() {
let ohne = crate::site_rules::model_top(&project("")).unwrap();
let mit = crate::site_rules::model_top(&project(r#","parapetHeight":0.5,"parapetWidth":0.2"#)).unwrap();
assert!((mit - ohne - 0.5).abs() < 1e-9, "{ohne} {mit}");
}
#[test]
fn ohne_hoehe_keine_attika() {
assert!(of(&project("")).is_none());
+6 -1
View File
@@ -592,7 +592,12 @@ pub fn model_top(p: &Project) -> Option<f64> {
}
for r in p.roofs.as_deref().unwrap_or(&[]) {
let eaves = p.roof_base_elevation(r);
top = top.max(eaves + crate::roof::roof_geometry(&r.params(), eaves).ridge_height);
let geo = crate::roof::roof_geometry(&r.params(), eaves);
top = top.max(eaves + geo.ridge_height);
// [285] Attika zählt zur Gesamthöhe (Oberkante Brüstung über der Dachhaut).
if let Some(pp) = crate::roof_parapet::parapet(r, &geo) {
top = top.max(pp.z1);
}
}
top.is_finite().then_some(top)
}