[157] Plan-Review Teil 2: Gelände nur im Geschoss ±0.00 (Feld „Gelände zeigen“), Schnittmarken-Beschriftung weicht aus, Schattenrest am Erker, Stempel nicht auf dem First, Achsblasen hinter den Massketten, Achsen in Schnitt/Ansicht als Stummel, Schnitte ohne verdeckte Kanten, CLI-Schnitt/-Ansicht mit Höhenkoten
- Gelände/Höhenlinien/Baugrube nur im Geschoss nächst ±0.00 und ab 1:500; showTerrain an Ebene/Vorlage - Beschriftung der Schnitt-/Ansichtsmarken weicht Masszahlen, Texten, Blasen und anderen Marken aus - kleine Schattenreste an Abdeckungen entfallen (Keil neben dem Erker) - Dachlinien sind Hindernisse der Raumstempel; Achsblasen weichen Massketten aus - Achsen in Schnitt und Ansicht nur als Stummel auf der Blasenseite - Musterhaus komplex: Schnitte ohne verdeckte Kanten, eigene Vorlage mit; Nordpfeil verschoben - CLI section/elevation über viewportLevelPlan (Höhenkoten wie die App) - ankommende Treppe und Bodenbelag nur in Geschoss-Grundrissen (nicht auf Schnitt-Ebenen) - Ansicht: Schatten mit Tiefe je Stirn-Ende, Decken-Stirnfacetten geglättet - Goldens neu, TODO nachgeführt
This commit is contained in:
36 files changed
+582
-245
No files matched your search
@@ -43,21 +43,21 @@
|
||||
<polyline points="-1,2.9725 -1,2.3725 -1,1.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="1.7725" x2="-0.85" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="1.7725" x2="-1.15" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<text x="-1.1725" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.1725 1.5925)">A</text>
|
||||
<polyline points="6,2.9725 6,2.3725 6,1.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="1.7725" x2="6.15" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="1.7725" x2="5.85" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<text x="5.8275" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.8275 1.5925)">A</text>
|
||||
<polygon points="-1,2.3725 6,2.3725 6,2.9725 -1,2.9725" fill="none" stroke="none" stroke-width="0"/>
|
||||
<line x1="-1" y1="6.6725" x2="6" y2="6.6725" stroke="#1f242c" stroke-width="0.018" stroke-dasharray="0.6 0.15 0.04 0.15" stroke-dashoffset="0.09"/>
|
||||
<polyline points="-1,6.9725 -1,6.3725 -1,5.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="5.7725" x2="-0.85" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="5.7725" x2="-1.15" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<text x="-1.46125" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.46125 5.5925)">Süd</text>
|
||||
<polyline points="6,6.9725 6,6.3725 6,5.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="5.7725" x2="6.15" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="5.7725" x2="5.85" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<text x="5.53875" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.53875 5.5925)">Süd</text>
|
||||
<polygon points="-1,6.3725 6,6.3725 6,6.9725 -1,6.9725" fill="none" stroke="none" stroke-width="0"/>
|
||||
<text x="-1.1725" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.1725 1.5925)">A</text>
|
||||
<text x="5.8275" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.8275 1.5925)">A</text>
|
||||
<text x="-1.46125" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.46125 5.5925)">Süd</text>
|
||||
<text x="5.53875" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.53875 5.5925)">Süd</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
@@ -134,6 +134,15 @@ describe("dossier-cli", () => {
|
||||
expect(bytes.length).toBeGreaterThan(10_000);
|
||||
}, 60_000);
|
||||
|
||||
it("[157] Schnitt und Ansicht mit Höhenkoten wie in der App", async () => {
|
||||
for (const kind of ["section", "elevation"] as const) {
|
||||
const lvl = sampleProject.drawingLevels.find((l) => l.kind === kind);
|
||||
if (!lvl) continue;
|
||||
const out = join(dir, `koten-${kind}.svg`);
|
||||
expect(await call(kind, lvl.name, "--out", out)).toBe(0);
|
||||
expect(readFileSync(out, "utf8")).toContain("±0.00");
|
||||
}
|
||||
}, 60_000);
|
||||
it("Schnitt und STEP über das WASM", async () => {
|
||||
const section = sampleProject.drawingLevels.find((l) => l.kind === "section");
|
||||
if (section) {
|
||||
|
||||
+6
-11
@@ -105,6 +105,7 @@ import {
|
||||
patchItem,
|
||||
generatePlan,
|
||||
generateSectionPlan,
|
||||
viewportLevelPlan,
|
||||
planToRenderScene,
|
||||
projectToModel3d,
|
||||
parseProjectFile,
|
||||
@@ -204,7 +205,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", "floorFinish"] as const;
|
||||
const TEMPLATE_LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish", "showTerrain"] as const;
|
||||
|
||||
/**
|
||||
* [33]/[34] `--template <Name|id>`: Ansichtsvorlage auf die Ebene anwenden (Override-Regeln nach
|
||||
@@ -676,16 +677,10 @@ async function execute(project: Project, file: string, command: string, rest: st
|
||||
if (!found) fail(`${command} nicht gefunden: ${name ?? "(erste)"}`);
|
||||
const sp = withSketch(withTemplate(project, found.id, args), found.id, args);
|
||||
const lvl = sp.drawingLevels.find((l) => l.id === found.id) ?? found;
|
||||
let plan;
|
||||
if (kind === "section") {
|
||||
const o = await computeSection(sp, lvl);
|
||||
if (!o) fail("keine gültige Schnittlinie");
|
||||
// Wie die App: verdeckte Kanten nach der Ebene, geschnittene Fenster/Türen.
|
||||
plan = generateSectionPlan(o, inkArg(args), { visibleCodes: allCodes, hiddenLines: lvl.hiddenLines, openings: true, scaleDenominator: scale });
|
||||
} else {
|
||||
plan = generateElevationPlan(sp, lvl, { scaleDenominator: scale, mono: inkArg(args) });
|
||||
if (!plan) fail("keine gültige Ansichtslinie");
|
||||
}
|
||||
// [157] Wie die App (`viewportLevelPlan`): verdeckte Kanten nach der Ebene, geschnittene Fenster/Türen,
|
||||
// automatische Höhenkoten (`levelMarks`) und die eigenen 2D-Elemente der Schnitt-/Ansichtsebene.
|
||||
const plan = await viewportLevelPlan(sp, lvl.id, allCodes, undefined, scale, false, inkArg(args));
|
||||
if (plan.primitives.length === 0) fail(kind === "section" ? "keine gültige Schnittlinie" : "keine gültige Ansichtslinie");
|
||||
if (args.flags.get("format") === "json") {
|
||||
out(args, JSON.stringify(planToRenderScene(plan, scale)), `${lvl.name}.scene.json`);
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user