[148] Dach: Flach- und Pultdach auf beliebigem Umriss statt Bounding-Box

Flach/Pult auf nicht-rechteckigem einfachen Umriss (L/U/schief/Bogen) als eine Ebene
über dem echten Umriss, konvexe Teilflächen; Flachdach mit Höfen ebenfalls konvex.
Dachfenster über einer Fuge schneiden alle koplanaren Teilflächen (Laibung je Fläche
beschnitten), IFC-NetArea ohne Dachfenster, Schatten je Teilfläche statt Hülle.
Goldens Musterhaus komplex (Erker-Flachdach mit Bogen) neu.
This commit is contained in:
Claude committed 2026-11-06 20:16:06 +00:00
1 parent e317d41e8f
commit fd08869eb9
15 files changed
+408 -62

No files matched your search

+2 -1
View File
@@ -139,7 +139,8 @@ function decodeGeometry(b: Float64Array): RoofGeometry {
/**
* Dach-Geometrie aus Form/Neigung/Überstand + Traufhöhe `eavesZ` (Rust-Kern). Rechteck: auf der
* Bounding-Box des Umrisses, um den Überstand geweitet, First entlang `ridgeAxis`; L/T/U und
* schiefe Umrisse: Skelett mit Graten, Kehlen und Giebeln.
* schiefe Umrisse: Skelett mit Graten, Kehlen und Giebeln; Flach/Pult: eine Ebene über dem echten
* Umriss (konvexe Teilflächen, [148]).
*/
export function roofGeometry(roof: Roof, eavesZ: number): RoofGeometry {
// Memo je Dach-Objekt: Dächer sind immutabel (structural sharing), die Geometrie wird je
+4 -1
View File
@@ -2666,7 +2666,10 @@ export type Roof = {
categoryCode: string;
/** Objekt-Sperre, analog `Wall.locked`. */
locked?: boolean;
/** Geschlossener Grundriss-Umriss (Meter); Geometrie nutzt die Bounding-Box. */
/**
* Geschlossener Grundriss-Umriss (Meter). Flach/Pult/Walm/Zelt folgen dem Umriss, Sattel/Mansarde einem
* rechtwinkligen; nur Giebelformen auf schiefem Umriss nutzen die Bounding-Box.
*/
outline: Array<Vec2>;
/**
* Innenhöfe/Lichthöfe als Ringe (Meter, jeder Ring geschlossen, Drehsinn egal). Das Dach
@@ -1,11 +1,11 @@
viewBox -4.2 0 37.045 17.678
bytes 265288
bytes 269563
circle 4
g 1
line 615
polygon 1555
polyline 68
line 625
polygon 1581
polyline 69
rect 1
svg 1
text 4
hash bc4a285700382759
hash ea60895e1c1610dc
@@ -1,5 +1,5 @@
viewBox -41.5 0 95 63.6
bytes 86178
bytes 86150
circle 16
g 1
line 314
@@ -10,4 +10,4 @@ rect 1
svg 1
text 118
tspan 26
hash 2fc5e3bab2df1b38
hash 8e0acc6189e6a1db
@@ -1,5 +1,5 @@
viewBox -41.5 0 95 63.6
bytes 114680
bytes 114652
circle 16
g 1
line 338
@@ -10,4 +10,4 @@ rect 1
svg 1
text 121
tspan 32
hash c02df9796df56fd8
hash 7876b345c4febd38
@@ -1,12 +1,12 @@
viewBox -4.055 0 25.109 23.11
bytes 339847
bytes 342044
circle 14
g 1
line 3310
line 3323
polygon 66
polyline 154
rect 1
svg 1
text 91
tspan 23
hash f4e69298c1be11bd
hash 8709adcfa69e7468
@@ -1,8 +1,8 @@
viewBox -4.055 0 25.109 23.11
bytes 370654
bytes 372851
circle 14
g 1
line 3333
line 3346
path 21
polygon 227
polyline 169
@@ -10,4 +10,4 @@ rect 1
svg 1
text 91
tspan 24
hash 532589653aac9cdb
hash 2737e7ed56c6df93
+8 -5
View File
@@ -3,8 +3,9 @@ meshes[].color [3] x1930
meshes[].indices [108] x6
meshes[].indices [144] x36
meshes[].indices [156642]
meshes[].indices [192] x3
meshes[].indices [348] x6
meshes[].indices [36] x1861
meshes[].indices [36] x1858
meshes[].indices [372]
meshes[].indices [60] x9
meshes[].indices [72]
@@ -19,17 +20,19 @@ meshes[].positions [216]
meshes[].positions [24] x1826
meshes[].positions [252] x2
meshes[].positions [288] x6
meshes[].positions [306] x3
meshes[].positions [324] x6
meshes[].positions [4746]
meshes[].positions [72] x5
meshes[].positions [72] x2
meshes[].positions [78837]
meshes[].positions [78] x36
roofLayers [59]
roofLayers[].color [3] x59
roofLayers[].normal [3] x59
roofLayers[].polygon [4] x53
roofLayers[].polygon [17] x3
roofLayers[].polygon [4] x50
roofLayers[].polygon [5] x6
roofLayers[].polygon[] [3] x242
roofLayers[].polygon[] [3] x281
slabs [102]
slabs[].color [3] x102
slabs[].outline [12]
@@ -52,4 +55,4 @@ walls[].start [2] x1489
walls[].startCut [4] x1164
walls[].topDrop [2] x103
walls[].topPlane [3] x259
hash f90e936890c00a18
hash f6fa8d0643a66fab