Schraffuren monochrom: Vordergrund #0f0f0f, Hintergrund #f0f0f0

Alle Schraffuren (Schnitt- UND Oberflaechen-/Ansichtsschraffur) rendern
jetzt einheitlich in Tinte #0f0f0f auf Papier #f0f0f0 statt in der
Materialfarbe des Bauteils (Backstein braun, Beton grau). HATCH_INK/
HATCH_PAPER ersetzen POCHE_FILL_BLACK/WHITE; resolveHatch liefert immer
HATCH_INK als Linienfarbe. Der generische Schnitt-Fallback nutzte bisher
die rohe 3D-Albedo (Ursache des Backstein-Brauns bei nicht aufloesbarer
Schicht) -> jetzt HATCH_PAPER. Print-Mono-Modus unberuehrt. 216 Tests gruen.
This commit is contained in:
2026-07-04 14:33:35 +02:00
parent da39f0c8d5
commit 5ed3549c66
2 changed files with 74 additions and 58 deletions
+10 -3
View File
@@ -22,7 +22,14 @@ import { dot, leftNormal, normalize, sub } from "../model/geometry";
import { openingInterval, openingVerticalExtent } from "../geometry/opening";
import { projectToModel3d } from "./toWalls3d";
import { loadEngine3d } from "../engine/engine3d";
import { resolveCeilingSectionStyle, resolveForeground, resolveHatch, resolveWallSectionStyle } from "./generatePlan";
import {
HATCH_INK,
HATCH_PAPER,
resolveCeilingSectionStyle,
resolveForeground,
resolveHatch,
resolveWallSectionStyle,
} from "./generatePlan";
import type { HatchRender } from "./generatePlan";
/** Bauteil-Referenz eines Cut-Polygons/einer Kante (Art + Eingabe-Index). */
@@ -516,7 +523,7 @@ function splitSlabLayers(
[uMax, vBottom],
[uMin, vBottom],
],
fill: hatch.pattern === "solid" ? "#000000" : "#ffffff",
fill: hatch.pattern === "solid" ? HATCH_INK : HATCH_PAPER,
hatch,
joinPriority: comp.joinPriority,
});
@@ -588,7 +595,7 @@ export function splitWallLayers(
[uRight, vMin],
[uLeft, vMin],
],
fill: hatch.pattern === "solid" ? "#000000" : "#ffffff",
fill: hatch.pattern === "solid" ? HATCH_INK : HATCH_PAPER,
hatch,
joinPriority: comp.joinPriority,
});