[G2] Wand unter Dach: schraege Oberkante (topDrop) in render3d statt 15-cm-Treppung; toWalls3d tastet die Dach-Unterkante ab und fasst gerade Stuecke zusammen; Tests

This commit is contained in:
karim committed 2026-10-27 20:12:57 +01:00
1 parent b0270bae3e
commit 460509424e
9 files changed
+186 -46

No files matched your search

+6
View File
@@ -1098,6 +1098,7 @@ mod tests {
let color = [0.8, 0.8, 0.8];
let walls = vec![
WallInput {
top_drop: [0.0, 0.0],
start: [0.0, 0.0],
end: [0.0, 3.0],
thickness: 0.2,
@@ -1112,6 +1113,7 @@ mod tests {
cut: None,
},
WallInput {
top_drop: [0.0, 0.0],
start: [0.0, 3.0],
end: [3.0, 3.0],
thickness: 0.2,
@@ -1187,6 +1189,7 @@ mod tests {
#[test]
fn wand_vor_der_ebene_verdeckt_nichts_dahinter() {
let mk = |start: [f32; 2], end: [f32; 2]| WallInput {
top_drop: [0.0, 0.0],
start,
end,
thickness: 0.2,
@@ -1405,6 +1408,7 @@ mod tests {
/// 1.0 m (Sturz beginnt also bei 2.0, Wand-Oberkante bei 2.5 -> 0.5 m Sturz).
fn wall_with_window() -> WallInput {
WallInput {
top_drop: [0.0, 0.0],
start: [0.0, 0.0],
end: [4.0, 0.0],
thickness: 0.2,
@@ -1499,6 +1503,7 @@ mod tests {
// Moduldoc "Oeffnungen").
let w0 = wall_with_window();
let w1 = WallInput {
top_drop: [0.0, 0.0],
start: [2.0, 1.0],
end: [4.0, 1.0],
thickness: 0.2,
@@ -1617,6 +1622,7 @@ mod tests {
#[test]
fn cut_section_mit_wand_und_dach_liefert_beide_cut_polygone() {
let wall = WallInput {
top_drop: [0.0, 0.0],
start: [2.0, -1.0],
end: [2.0, 1.0],
thickness: 0.3,