Merge [281] Geneigte Decken und Rampen (IFC-Datensatz der geneigten Decke auf 27, 26 bleibt Geländer)

This commit is contained in:
Claude committed 2026-11-18 00:50:05 +00:00
commit b6d8a6c2ad
60 files changed
+1273 -66

No files matched your search

+11
View File
@@ -85,12 +85,23 @@ pub struct RSlab {
pub cut: Option<RCutMeta>,
#[serde(skip_serializing_if = "Option::is_none")]
pub monolith: Option<String>,
/// [281] Geneigte Decke/Rampe: Neigungsebene `[ox, oy, gx, gy]` — jede Höhe der Platte (Ober- und
/// Unterkante) liegt am Grundrisspunkt (x, y) um `gx·(x−ox) + gy·(y−oy)` höher ([`RSlab::dz`]).
#[serde(skip_serializing_if = "Option::is_none")]
pub slope: Option<[f64; 4]>,
/// Herkunft der Platte (nur im Kern, nicht serialisiert): der Schnitt ordnet seine Bänder darüber
/// der Decke bzw. Deckenschicht oder der Treppe zu, statt die Platten abzuzählen.
#[serde(skip)]
pub source: SlabSource,
}
impl RSlab {
/// [281] Höhenversatz am Grundrisspunkt (x, y) (waagrecht 0).
pub fn dz(&self, x: f64, y: f64) -> f64 {
self.slope.as_ref().map_or(0.0, |g| crate::model::helpers::slope_dz(g, x, y))
}
}
/// Herkunft einer `RSlab`.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub enum SlabSource {