[K3c] Merge: Schnitt und Ansicht im Kern (section.rs, elevation.rs), Schnitt 8×8 33 s → 0.19 s
Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
52 files changed
+3795
-4552
No files matched your search
+6
-2
@@ -7,7 +7,7 @@
|
||||
// dossier-cli <projekt.obp> migrate [--out neu.obp]
|
||||
// dossier-cli <projekt.obp> plan [--level EG] [--scale 100] [--format svg|json] [--out eg.svg]
|
||||
// json = render2d-Szene (planToRenderScene)
|
||||
// dossier-cli <projekt.obp> section <Name> [--out schnitt.svg] (braucht render3d-WASM)
|
||||
// dossier-cli <projekt.obp> section <Name> [--out schnitt.svg] (--format json: render2d-Szene)
|
||||
// dossier-cli <projekt.obp> elevation <Name> [--out ansicht.svg]
|
||||
// dossier-cli <projekt.obp> ifc [--ebkph] [--ebenen] (IFC mit eBKP-H-Hauptgruppen bzw. Modell-Ebenen als Klassifikation)
|
||||
// --schema 4|2x3: IFC4 (Standard) oder IFC2x3 (Coordination View 2.0)
|
||||
@@ -595,6 +595,10 @@ async function execute(project: Project, file: string, command: string, rest: st
|
||||
plan = generateElevationPlan(project, lvl);
|
||||
if (!plan) fail("keine gültige Ansichtslinie");
|
||||
}
|
||||
if (args.flags.get("format") === "json") {
|
||||
out(args, JSON.stringify(planToRenderScene(plan, scale)), `${lvl.name}.scene.json`);
|
||||
return 0;
|
||||
}
|
||||
out(args, planToSvgString(plan, { scaleDenominator: scale }), `${lvl.name}.svg`);
|
||||
return 0;
|
||||
}
|
||||
@@ -792,7 +796,7 @@ async function execute(project: Project, file: string, command: string, rest: st
|
||||
await time("planToSvgString", () => planToSvgString(plan, { scaleDenominator: scale }));
|
||||
}
|
||||
await time("projectToModel3d", () => projectToModel3d(project));
|
||||
if (sec) await time("computeSection", () => computeSection(project, sec), Math.max(3, runs / 2));
|
||||
if (sec) await time("Schnitt (Kern)", async () => generateSectionPlan((await computeSection(project, sec))!, false, { visibleCodes: allCodes }), Math.max(3, runs / 2));
|
||||
if (elev) await time("generateElevationPlan", () => generateElevationPlan(project, elev), Math.max(3, runs / 2));
|
||||
if (project.walls.length) {
|
||||
const w0 = project.walls[0];
|
||||
|
||||
Reference in new issue
Block a user