[140][141] Merge Plandarstellung Teil 5 (1:100 schwarz, dünne Schichten, Raumstempel) mit Wandknoten-Resten; Goldens neu, Knoten-Test in Detail fein

This commit is contained in:
Claude committed 2026-11-06 16:21:32 +00:00
commit f29ffde6f8
51 files changed
+831 -270

No files matched your search

@@ -1,11 +1,11 @@
viewBox -4 0 23 18
bytes 317431
bytes 310337
circle 14
g 1
line 3227
polygon 75
polyline 73
line 3226
polygon 21
polyline 68
rect 1
svg 1
text 36
hash 008b41292083538c
hash 45b4d584a3e141d6
@@ -1,11 +1,11 @@
viewBox -4 0 23 18
bytes 323091
bytes 320692
circle 14
g 1
line 3240
line 3227
polygon 75
polyline 84
polyline 73
rect 1
svg 1
text 36
hash 92ee43948feacb35
hash e0545755beab6d46
@@ -1,12 +1,12 @@
viewBox -41.5 0 95 63.6
bytes 112686
bytes 85358
circle 16
g 1
line 338
path 39
polygon 266
polyline 126
line 314
path 18
polygon 104
polyline 110
rect 1
svg 1
text 115
hash 1902777252ac56f7
text 118
hash cef117cef66ccd65
@@ -1,12 +1,12 @@
viewBox -41.5 0 95 63.6
bytes 117858
bytes 113593
circle 16
g 1
line 349
path 45
line 338
path 39
polygon 266
polyline 151
polyline 126
rect 1
svg 1
text 118
hash 41dada4449c225f7
text 121
hash 7e22563a4804f932
@@ -1,12 +1,11 @@
viewBox -4.055 0 25.109 23.11
bytes 366321
bytes 339103
circle 14
g 1
line 3333
path 21
polygon 227
polyline 169
line 3310
polygon 66
polyline 154
rect 1
svg 1
text 89
hash 3e20e7dadb42197b
text 91
hash 46723498044c422b
@@ -1,12 +1,12 @@
viewBox -4.055 0 25.109 23.11
bytes 374960
bytes 369846
circle 14
g 1
line 3350
path 27
line 3333
path 21
polygon 227
polyline 195
polyline 169
rect 1
svg 1
text 91
hash 6e48062b617631c7
hash be529b7ce07ecad8
@@ -1,12 +1,12 @@
viewBox -10.004 0 31.058 26.958
bytes 61136
bytes 52665
circle 14
g 1
line 171
path 13
polygon 105
polyline 77
line 166
path 2
polygon 60
polyline 73
rect 1
svg 1
text 74
hash 29b459e18b552b28
text 75
hash 5819887a677f289a
@@ -1,12 +1,12 @@
viewBox -10.004 0 31.058 26.958
bytes 62056
bytes 61331
circle 14
g 1
line 173
path 15
line 171
path 13
polygon 105
polyline 80
polyline 77
rect 1
svg 1
text 75
hash b317c0dda4bab8ed
hash 1f584745aa154d01
@@ -1,11 +1,11 @@
viewBox 4.457 0 21.343 17.678
bytes 36282
bytes 40531
circle 3
g 1
line 105
polygon 136
polyline 14
line 96
polygon 186
polyline 13
rect 1
svg 1
text 3
hash ff9a1be90fae7d83
hash 2bfa93e2c1d3a9c8
@@ -1,10 +1,10 @@
viewBox -0.672 0 6.345 5.345
bytes 11826
bytes 7890
g 1
line 33
polygon 62
polyline 8
line 32
polygon 30
polyline 4
rect 1
svg 1
text 7
hash 6d3b7926ca1a3a6d
hash bdf6e70cae4a0a08
@@ -1,10 +1,10 @@
viewBox -0.672 0 6.345 5.345
bytes 12491
bytes 11830
g 1
line 34
line 33
polygon 62
polyline 13
polyline 8
rect 1
svg 1
text 7
hash 7378e595c698986f
hash 24dc3848bf391596
@@ -1,10 +1,10 @@
viewBox -0.9 0 6.8 5.8
bytes 5572
bytes 3630
g 1
line 15
polygon 26
polygon 9
polyline 4
rect 1
svg 1
text 4
hash 97d2aa8ea90eafff
hash da75b90e9db14090
@@ -1,10 +1,10 @@
viewBox -0.9 0 6.8 5.8
bytes 5816
bytes 5578
g 1
line 15
polygon 28
polygon 26
polyline 4
rect 1
svg 1
text 4
hash 7ca726f020333afb
hash 860efb50b93e47d9
@@ -1,9 +1,9 @@
viewBox 0.1 0 6.8 7.586
bytes 6662
bytes 6451
g 1
line 31
polygon 23
polyline 6
line 21
polygon 34
polyline 4
rect 1
svg 1
hash 68fbe08143832562
hash bfdb9a52ee2f2f02
+2 -2
View File
@@ -69,9 +69,9 @@ function column(overrides: Partial<Column> = {}): Column {
};
}
/** Grundriss des Geschosses „eg" mit genau dieser Stütze. */
/** Grundriss des Geschosses „eg" mit genau dieser Stütze (1:50 — ab 1:100 ist die Schnittfläche schwarz, [140]). */
function planColumn(p: Project, col: Column): Primitive[] {
return generatePlan({ ...p, columns: [col] }, "eg", new Set(["50"])).primitives;
return generatePlan({ ...p, columns: [col] }, "eg", new Set(["50"]), undefined, "mittel", false, false, true, 50).primitives;
}
function polygonOf(out: Primitive[]): Extract<Primitive, { kind: "polygon" }> {
+1 -1
View File
@@ -44,7 +44,7 @@ function cornerProject(): Project {
},
],
drawingLevels: [
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
],
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
walls: [
+1 -1
View File
@@ -48,7 +48,7 @@ function tJunctionProject(): Project {
},
],
drawingLevels: [
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
],
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
walls: [
+3 -3
View File
@@ -30,7 +30,7 @@ function project(): Project {
components: [{ id: "a", name: "A", color: "#d8d2c7", hatchId: "none", joinPriority: 10 }],
wallTypes: [{ id: "aw", name: "AW", layers: [{ componentId: "a", thickness: 0.2 }] }],
drawingLevels: [
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
],
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
walls: [
@@ -138,7 +138,7 @@ function nonSolidWallProject(): Project {
components: [{ id: "brick", name: "Backstein", color: "#c9a876", hatchId: "diag", joinPriority: 10 }],
wallTypes: [{ id: "aw", name: "AW", layers: [{ componentId: "brick", thickness: 0.3 }] }],
drawingLevels: [
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
],
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
walls: [wall],
@@ -185,7 +185,7 @@ function ceilingProject(): Project {
components: [{ id: "a", name: "A", color: "#d8d2c7", hatchId: "none", joinPriority: 10 }],
wallTypes: [{ id: "aw", name: "AW", layers: [{ componentId: "a", thickness: 0.2 }] }],
drawingLevels: [
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
],
layers: [{ code: "30", name: "Decken", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
walls: [],
+4 -2
View File
@@ -257,13 +257,15 @@ describe('GpuChunkCache: Kern-Abschnitte (Plan-Puffer v2, Inhalts-Hash)', () =>
const p = bigSampleProject(8);
const { gl } = makeGl();
const cache = new GpuChunkCache(gl);
const a = generatePlan(p, 'eg', codes(p));
// 1:50: Wände mit Schichten (ab 1:100 eine schwarze Fläche je Wand, [140]) → genug Chunks.
const gen = (q: typeof p) => generatePlan(q, 'eg', codes(q), undefined, 'mittel', false, false, true, 50);
const a = gen(p);
cache.update(a.primitives, 90, 6, a.greyedRanges, a.underlay, a.bufRuns);
const total = cache.lastStats.chunks;
expect(total).toBeGreaterThan(8);
const walls = p.walls.slice();
walls[200] = { ...walls[200], end: { x: walls[200].end.x + 0.05, y: walls[200].end.y } };
const b = generatePlan({ ...p, walls }, 'eg', codes(p));
const b = gen({ ...p, walls });
cache.update(b.primitives, 90, 6, b.greyedRanges, b.underlay, b.bufRuns);
expect(cache.lastStats.recompiled).toBeGreaterThan(0);
expect(cache.lastStats.recompiled).toBeLessThanOrEqual(3);
+2 -1
View File
@@ -55,7 +55,8 @@ describe("Schnitt: Gelände und freie Körper", () => {
brep: { spec: { kind: "sphere", center: [px, pz, 1], r: 1 }, origin: { x: px - 1, y: pz - 1 } },
};
const p: Project = { ...sampleProject, extrudedSolids: [...(sampleProject.extrudedSolids ?? []), sphere] };
const plan = generateSectionPlan((await computeSection(p, section))!);
// 1:50 (ab 1:100 sind Schnittflächen schwarz, [140])
const plan = generateSectionPlan((await computeSection(p, section))!, false, { scaleDenominator: 50 });
expect(plan.primitives.some((q) => q.kind === "polygon" && q.extrudedSolidId === "ball" && q.fill === "#d9dde2")).toBe(true);
}, 30_000);
+1 -1
View File
@@ -53,7 +53,7 @@ describe("planToRenderScene (Kern)", () => {
});
it("Binärszene: Zähler wie die Objekt-Szene", () => {
const plan = generatePlan(sampleProject, "eg", codes);
const plan = generatePlan(sampleProject, "eg", codes, undefined, "mittel", false, false, true, 50);
const s = planToRenderScene(plan);
const b = planSceneBin(plan);
const h = new Uint32Array(b.buffer, b.byteOffset, 12);
+12 -2
View File
@@ -5,7 +5,7 @@
// Sichtbarkeit (UI-Zustand) und die asynchron gebauten truck-Körper hinein. Einheiten: Meter; u entlang
// der Ebene (Blickrichtungs-RECHTS), v = absolute Höhe.
import type { DrawingLevel, Project, Vec2 } from "../model/types";
import type { DetailLevel, DrawingLevel, Project, Vec2 } from "../model/types";
import { flattenCategories, getFloor } from "../model/types";
import { withDocument } from "../core/document";
import { buildSolidMesh } from "../engine/truckSolid";
@@ -113,6 +113,7 @@ export function levelArg(level: DrawingLevel) {
shadows: level.shadows,
hiddenLines: level.hiddenLines,
sketch: level.sketch,
cutHatch: level.cutHatch,
};
}
@@ -123,7 +124,15 @@ export function levelArg(level: DrawingLevel) {
export function generateSectionPlan(
output: SectionOutput,
mono = false,
opts: { hiddenLines?: boolean; visibleCodes?: Set<string>; categoryDisplay?: CategoryDisplayResolver; openings?: boolean; scaleDenominator?: number } = {},
opts: {
hiddenLines?: boolean;
visibleCodes?: Set<string>;
categoryDisplay?: CategoryDisplayResolver;
openings?: boolean;
scaleDenominator?: number;
/** [140] Detailgrad: „fein" zeigt auch ab 1:100 alle dünnen Schichten (Standard „mittel"). */
detail?: DetailLevel;
} = {},
): Plan {
const { project, level } = output;
const text = JSON.stringify({
@@ -131,6 +140,7 @@ export function generateSectionPlan(
hiddenLines: !!opts.hiddenLines,
// Massstabsnenner für die Achsblasen des Rasters ([112]); Default 100.
scale: opts.scaleDenominator ?? 100,
detail: opts.detail,
...visibilityArgs(project, opts.visibleCodes, opts.categoryDisplay),
});
const args = output.bodies.slice();
+1 -1
View File
@@ -44,7 +44,7 @@ export async function viewportLevelPlan(
if (level.kind === "section") {
const out = await computeSection(project, level);
raw = out
? generateSectionPlan(out, mono, { hiddenLines: level.hiddenLines, visibleCodes, openings: true, scaleDenominator })
? generateSectionPlan(out, mono, { hiddenLines: level.hiddenLines, visibleCodes, openings: true, scaleDenominator, detail })
: null;
} else {
raw = generateElevationPlan(project, level, { visibleCodes, scaleDenominator, mono });