[168] Schichteinzug/Anschlag-Nase als Teil der Schicht; Vorgabe bei Aussendämmung
Grundriss: Die Anschlag-Nasen (Schichtstücke vor dem Rahmen) waren eigene Flächen mit schwerer Umrisslinie und eigener Schraffur-Phase — sie gehen jetzt als Zusatzstücke in die Wand-Poché (Raster in wall_poche::adjusted_segment: Umriss nur zur Leere, keine Linie zwischen Schicht und Einzug); Band, Einzug und Nase je Schicht als EINE Fläche (i_overlay, Ecken auf die Eingabe zurückgerastet, Bogenwände polar). Schnitt: Band und Schichteinzug auch ohne Nase ein Umriss. Vorgabe (nur wo am Typ/an der Öffnung nichts gesetzt ist): in Wänden mit Aussendämmung sitzt der Rahmen in der Leibung der tragenden Schicht (bündig mit deren Aussenfläche), kein Anschlag, die Dämmung überdämmt ihn 3 cm — Grundriss, Schnitt, Ansicht, 3D, IFC. IFC: Wand mit Stücken als ein Manifold-Körper, Öffnungskörper in der Rahmenlage (schneidet die Stücke nicht weg); der IFC-Import erkennt Wände, deren Löcher schon im Körper sind. Goldens: Musterhaus komplex Grundrisse/Schnitt A (Nasen in der Schicht), Muster EG und 3D (Vorgabe: 12 Überdämmungs-Stücke). Geprüft: cargo test core + fileio, tsc, vitest (inkl. ifcopenshell), CLI-Grundriss 1:20/1:50 und Schnitt A-A als PNG vorher/nachher (Linux). Nicht in der Tauri-App/Mac.
This commit is contained in:
23 files changed
+624
-89
No files matched your search
@@ -78,7 +78,7 @@ fn write_opening(w: &mut FlatWriter, p: &Project, op: &Opening) {
|
||||
Some(WindowTypeInsetFace::Mitte) => 2.0,
|
||||
_ => 0.0,
|
||||
};
|
||||
write_common(w, wt.frame_depth, wt.inset_from_face, side, wt.frame_corner_join, wt.frame_width, wt.transom_height, wt.rebate_depth);
|
||||
write_common(w, wt.frame_depth, wt.inset_from_face.or_else(|| crate::opening_detail::default_frame_inset(p, op)), side, wt.frame_corner_join, wt.frame_width, wt.transom_height, wt.rebate_depth);
|
||||
let sturz = wt.shading.as_ref().is_some_and(|s| s.mount == Some(WindowShadingMount::Sturz));
|
||||
let rails = sturz && wt.shading.as_ref().is_some_and(|s| s.kind != WindowShadingKind::Markise);
|
||||
let shading = wt.shading.as_ref().filter(|s| s.create).map(|s| &s.r#box);
|
||||
@@ -137,7 +137,7 @@ fn write_opening(w: &mut FlatWriter, p: &Project, op: &Opening) {
|
||||
Some(DoorTypeInsetFace::Mitte) => 2.0,
|
||||
_ => 0.0,
|
||||
};
|
||||
write_common(w, dt.frame_depth, dt.inset_from_face, side, dt.frame_corner_join, dt.frame_width, dt.transom_height, dt.rebate_depth);
|
||||
write_common(w, dt.frame_depth, dt.inset_from_face.or_else(|| crate::opening_detail::default_frame_inset(p, op)), side, dt.frame_corner_join, dt.frame_width, dt.transom_height, dt.rebate_depth);
|
||||
w.nums(&[
|
||||
flag(dt.threshold == Some(true)),
|
||||
dt.leaf_count,
|
||||
@@ -432,9 +432,9 @@ pub(crate) fn shaped_wall_opening_meshes(p: &Project, wall: &Wall, wr: &WallRef,
|
||||
let mut out: Vec<RMesh> = shaped_wall_fill(p, wall, op, wr.total, w, h).into_iter().map(|(q, n0, n1, rgb)| box_mesh(os::quad_box(&q, n0, n1, &map), rgb)).collect();
|
||||
let door = op.kind == ElementKind::Door;
|
||||
let ty = if door {
|
||||
p.door_type(op).map(|t| (t.frame_depth, t.inset_from_face, t.inset_face == Some(DoorTypeInsetFace::Innen), t.inset_face == Some(DoorTypeInsetFace::Mitte), t.frame_width))
|
||||
p.door_type(op).map(|t| (t.frame_depth, t.inset_from_face.or_else(|| crate::opening_detail::default_frame_inset(p, op)), t.inset_face == Some(DoorTypeInsetFace::Innen), t.inset_face == Some(DoorTypeInsetFace::Mitte), t.frame_width))
|
||||
} else {
|
||||
p.window_type(op).map(|t| (t.frame_depth, t.inset_from_face, t.inset_face == Some(WindowTypeInsetFace::Innen), t.inset_face == Some(WindowTypeInsetFace::Mitte), t.frame_width))
|
||||
p.window_type(op).map(|t| (t.frame_depth, t.inset_from_face.or_else(|| crate::opening_detail::default_frame_inset(p, op)), t.inset_face == Some(WindowTypeInsetFace::Innen), t.inset_face == Some(WindowTypeInsetFace::Mitte), t.frame_width))
|
||||
};
|
||||
let glass = PART_RGB[0];
|
||||
let Some((fd, inset_face, inner, mid, fw)) = ty else {
|
||||
|
||||
@@ -242,6 +242,10 @@ fn sample() -> Project {
|
||||
#[test]
|
||||
fn formoeffnung_fuellkoerper_rahmen_glas() {
|
||||
let mut p = sample();
|
||||
// Ohne die [168]-Vorgabe (Dämmung überdeckt den Rahmen): Fenster ausdrücklich aussen bündig.
|
||||
for t in p.window_types.iter_mut().flatten() {
|
||||
t.inset_face = Some(WindowTypeInsetFace::Aussen);
|
||||
}
|
||||
let plain = emit_opening_meshes(&p, 2.0).len();
|
||||
for o in p.openings.iter_mut().flatten().filter(|o| o.id == "O1") {
|
||||
o.shape = Some(OpeningShape::Rundbogen);
|
||||
|
||||
Reference in new issue
Block a user