[156] Bodenbelag-Muster im Grundriss massstabsgerecht: erst ab 1:50/fein, Einstellung „Bodenbelag zeigen“ (aus/Nassräume/alle) an Ebene und Ansichtsvorlage, Regel-Bauteilart floor_finish, feine Tusche-graue Linie mit Mindestteilung 1.5 mm, Aussparung von Raumstempeln, Möbeln und Einbauten

This commit is contained in:
Claude committed 2026-11-07 15:45:15 +00:00
1 parent 67cca68b86
commit 66e7a748f8
23 files changed
+592 -60

No files matched your search

+1 -1
View File
@@ -198,7 +198,7 @@ function findLevel(project: Project, kinds: string[], name: string | undefined)
}
/** Ansichts-Felder einer Vorlage, die am Geschoss/Schnitt/Ansicht stehen (wie `state/viewTemplates.ts`). */
const TEMPLATE_LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch"] as const;
const TEMPLATE_LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish"] as const;
/**
* [33]/[34] `--template <Name|id>`: Ansichtsvorlage auf die Ebene anwenden (Override-Regeln nach
+5
View File
@@ -1162,6 +1162,10 @@ export const de = {
"resources.viewTemplates.shadows": "Schatten",
"resources.viewTemplates.hiddenLines": "Verdeckte Kanten",
"resources.viewTemplates.cutHatch": "Schnittflächen 1:100 schraffiert (statt schwarz)",
"resources.viewTemplates.floorFinish": "Bodenbelag zeigen (ohne: ab 1:50 bzw. „fein“)",
"resources.viewTemplates.floorFinish.off": "aus",
"resources.viewTemplates.floorFinish.wet": "Nassräume (Platten, gröber als 1:50)",
"resources.viewTemplates.floorFinish.all": "alle",
"resources.viewTemplates.rules": "Override-Regeln festlegen",
"resources.viewTemplates.rulesHint": "Eingeschaltete Regeln gelten in Ansichten/Ausschnitten mit dieser Vorlage, alle übrigen sind dort aus.",
"resources.viewTemplates.ruleBlock": "Baustein übernehmen",
@@ -1255,6 +1259,7 @@ export const de = {
"resources.overrides.val.element_kind.shadow": "Schatten",
"resources.overrides.val.element_kind.terrain": "Gelände",
"resources.overrides.val.element_kind.mesh": "Importiertes Netz",
"resources.overrides.val.element_kind.floor_finish": "Bodenbelag (Muster im Grundriss)",
"resources.overrides.action.hide": "Ausblenden",
"resources.overrides.value.material": "Name, Kennung oder std-c-…",
"resources.overrides.and": "und",
+5
View File
@@ -1156,6 +1156,10 @@ export const en: Record<TranslationKey, string> = {
"resources.viewTemplates.shadows": "Shadows",
"resources.viewTemplates.hiddenLines": "Hidden lines",
"resources.viewTemplates.cutHatch": "Hatched cut areas at 1:100 (instead of solid black)",
"resources.viewTemplates.floorFinish": "Show floor finish (unset: from 1:50 or “fine”)",
"resources.viewTemplates.floorFinish.off": "off",
"resources.viewTemplates.floorFinish.wet": "Wet rooms (tiles, coarser than 1:50)",
"resources.viewTemplates.floorFinish.all": "all",
"resources.viewTemplates.rules": "Set override rules",
"resources.viewTemplates.rulesHint": "Checked rules apply in views and snapshots using this template, all others are off there.",
"resources.viewTemplates.ruleBlock": "Add building block",
@@ -1249,6 +1253,7 @@ export const en: Record<TranslationKey, string> = {
"resources.overrides.val.element_kind.shadow": "Shadow",
"resources.overrides.val.element_kind.terrain": "Terrain",
"resources.overrides.val.element_kind.mesh": "Imported mesh",
"resources.overrides.val.element_kind.floor_finish": "Floor finish (plan pattern)",
"resources.overrides.action.hide": "Hide",
"resources.overrides.value.material": "Name, id or std-c-…",
"resources.overrides.and": "and",
+12
View File
@@ -1123,6 +1123,10 @@ export type DrawingLevel = {
* schwarze Fläche (Poché). Fehlt/aus: ab 1:100 schwarz, 1:50 und Detail „fein" schraffiert.
*/
cutHatch?: boolean;
/**
* [156] Bodenbelag-Muster im Grundriss: fehlt = automatisch (ab 1:50 bzw. Detail „fein" alle, gröber keine).
*/
floorFinish?: FloorFinishDisplay;
/**
* Grundriss-Unterlage (nur Schnitt/Ansicht): ID eines Geschosses, dessen
* Grundriss AUSGERICHTET unter dem Schnitt/der Ansicht gezeigt wird (Schnitt-
@@ -1287,6 +1291,12 @@ export type ExtrudedSolid = {
brep?: { spec: Record<string, unknown>; origin: Vec2; label?: string };
};
/**
* [156] Bodenbelag-Muster im Grundriss (Ansichtsvorlage/Ebene): „aus" nie, „Nassräume" ab 1:50/„fein"
* alle und gröber nur Plattenbeläge in Nassräumen (Bad/WC/Dusche), „alle" in jedem Massstab.
*/
export type FloorFinishDisplay = "off" | "wet" | "all";
/**
* Ein Türtyp (Türstil) — wiederverwendbares Preset für {@link Opening} mit
* `kind: "door"`. Bündelt Bauart, Blattausführung und Standardmaße. Werte am
@@ -3477,6 +3487,8 @@ export type ViewTemplate = {
sketch?: boolean;
/** [140] Schnittflächen ab 1:100 schraffiert statt schwarz (s. `DrawingLevel::cut_hatch`). */
cutHatch?: boolean;
/** [156] Bodenbelag-Muster im Grundriss (s. `DrawingLevel::floor_finish`). */
floorFinish?: FloorFinishDisplay;
/** Strichstärken mit dem Massstab skalieren. */
scaleLineWeights?: boolean;
/** Schnitthöhe über OKFF ([36]). */
@@ -1,12 +1,12 @@
viewBox -4.243 0 23.243 18.205
bytes 299906
bytes 23064
circle 14
g 1
line 3240
line 91
polygon 22
polyline 72
polyline 20
rect 1
svg 1
text 36
tspan 12
hash 6c6c880fe2c4582f
hash 476f813f443d315d
@@ -1,12 +1,12 @@
viewBox -4.243 0 23.243 18.205
bytes 310802
bytes 307254
circle 14
g 1
line 3243
line 3202
polygon 76
polyline 78
rect 1
svg 1
text 36
tspan 12
hash 21d1ba97c7c3db67
hash 24e2377802dd7bbc
@@ -1,13 +1,13 @@
viewBox -41.5 0 95 63.6
bytes 91509
bytes 77791
circle 16
g 1
line 306
line 158
path 18
polygon 91
polyline 125
polyline 124
rect 1
svg 1
text 118
tspan 26
hash b05e9e5b01749232
hash 152d5241c7868827
@@ -1,8 +1,8 @@
viewBox -41.5 0 95 63.6
bytes 122277
bytes 128960
circle 16
g 1
line 331
line 403
path 39
polygon 253
polyline 145
@@ -10,4 +10,4 @@ rect 1
svg 1
text 121
tspan 32
hash b923b6e7c8e675df
hash d4d84942c135622a
@@ -1,12 +1,12 @@
viewBox -4.243 0 25.297 23.11
bytes 338968
bytes 49755
circle 14
g 1
line 3300
line 128
polygon 52
polyline 163
polyline 111
rect 1
svg 1
text 90
tspan 22
hash 2cc51320b673cd40
hash f34a5df35938ec79
@@ -1,8 +1,8 @@
viewBox -4.243 0 25.297 23.11
bytes 370559
bytes 361442
circle 14
g 1
line 3328
line 3227
path 21
polygon 213
polyline 180
@@ -10,4 +10,4 @@ rect 1
svg 1
text 91
tspan 24
hash 5888f6974ebcee6f
hash 4d3f45b22f1bbcc7
+5
View File
@@ -35,6 +35,11 @@ function withTemplate(p: Project): Project {
}
describe("viewTemplates", () => {
it("[156] setzt „Bodenbelag zeigen“ am Geschoss", () => {
const p = applyOps(base(), addTemplateOps({ id: "tb", name: "Nass", floorFinish: "wet" }));
const q = applyOps(p, applyToLevelOps(p, "tb", "eg", false));
expect(q.drawingLevels.find((l) => l.id === "eg")?.floorFinish).toBe("wet");
});
it("erfasst Geschoss- und Anzeigewerte", () => {
const p = base();
const t = captureTemplate("t", "V", p.drawingLevels.find((l) => l.id === "eg"), ui);
+1 -1
View File
@@ -29,7 +29,7 @@ export interface ViewTemplateUi {
}
/** Geschoss-Felder, die eine Vorlage setzt (fehlt das Vorlagen-Feld, bleibt die Ansicht unberührt). */
const LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch"] as const;
const LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish"] as const;
/** Teilobjekt für das Geschoss aus den gesetzten Feldern der Vorlage. */
export function levelPatch(t: ViewTemplate): Partial<DrawingLevel> {
+1 -1
View File
@@ -28,7 +28,7 @@ const OVERRIDE_TYPE_OPTIONS: { value: OverrideConditionType; labelKey: string }[
/** [33] Feste Werte je Kriterium (Auswahl statt Freitext); Beschriftung `resources.overrides.val.<typ>.<wert>`. */
const ENUM_VALUES: Partial<Record<OverrideConditionType, readonly string[]>> = {
element_kind: ["wall", "slab", "ground_slab", "roof", "stair", "column", "opening", "room", "shadow", "terrain", "mesh"],
element_kind: ["wall", "slab", "ground_slab", "roof", "stair", "column", "opening", "room", "shadow", "terrain", "mesh", "floor_finish"],
layer_function: ["structure", "insulation", "screed", "finish", "plaster", "substructure", "membrane", "cladding", "air"],
layer_position: ["above", "structure", "below"],
view_kind: ["plan", "section", "elevation"],
@@ -157,6 +157,15 @@ function TemplateDetail({
{bool("scaleLineWeights", t("resources.viewTemplates.scaleLineWeights"))}
{bool("sketch", t("resources.viewTemplates.sketch"))}
{bool("cutHatch", t("resources.viewTemplates.cutHatch"))}
<Optional label={t("resources.viewTemplates.floorFinish")} on={tpl.floorFinish !== undefined} onToggle={(on) => patch({ floorFinish: on ? "off" : null })}>
<select className="res-input" aria-label={t("resources.viewTemplates.floorFinish")} value={tpl.floorFinish ?? "off"} onChange={(e) => patch({ floorFinish: e.target.value })}>
{(["off", "wet", "all"] as const).map((v) => (
<option key={v} value={v}>
{t(`resources.viewTemplates.floorFinish.${v}`)}
</option>
))}
</select>
</Optional>
<RulesSection tpl={tpl} project={project} h={h} />
<div className="res-hint">{t("resources.viewTemplates.rangeHint")}</div>
{num("cutHeight", t("resources.viewTemplates.cutHeight"), 1.0)}