Commit Graph

44 Commits

Author SHA1 Message Date
d18c2fcc41 test: wait for viewer floor controls before smoke
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled
2026-07-21 15:32:54 +08:00
6c207b0538 test: exercise floor state in browser smoke
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled
2026-07-21 15:30:24 +08:00
f2c24f4590 fix: preserve Unicode floor state in viewer URLs
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled
2026-07-21 15:20:43 +08:00
8cc64f2e58 fix: generate showcase thumbnails deterministically
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled
2026-07-21 14:53:23 +08:00
e0cd974c6b fix: distinguish Revit view wrappers from family blocks
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled
2026-07-21 14:38:30 +08:00
20ef26db9f fix: codify split roof and campus assembly
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled
2026-07-21 14:05:06 +08:00
a38e5796ea fix: resolve Node outside daemon PATH
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled
2026-07-21 13:52:41 +08:00
a3be794e19 fix: make CAD conversion recovery deterministic
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled
2026-07-21 13:49:18 +08:00
9d7d3cb973 fix: enforce Revit roof views and orphan geometry gates
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled
2026-07-21 13:10:04 +08:00
a29d1be3b2 fix: localize viewer render metric 2026-07-21 12:06:44 +08:00
b577a262a1 fix: localize model variant descriptions 2026-07-21 11:19:38 +08:00
87afe63313 fix: detect Revit floor frames deterministically 2026-07-21 11:03:38 +08:00
c12d1d57cb fix: close remaining CAD delivery review gaps 2026-07-11 15:26:43 +08:00
6c1336fa59 fix: close audited CAD delivery gate gaps 2026-07-10 15:58:51 +08:00
a761175c09 fix: enforce complete building and offline viewer gates 2026-07-10 14:04:10 +08:00
cab4d320c0 fix: automate GLB compression and real viewport smoke 2026-07-10 13:19:47 +08:00
78ec1fbdcc fix: enforce strict CAD showcase delivery gates 2026-07-10 12:38:12 +08:00
8b1b1d5e89 feat: harden CAD showcase skill and delivery pipeline 2026-07-10 09:21:13 +08:00
a6856f903d Windows support: install-path probing + platform notes
- Blender discovery adds the Windows versioned install dir (Program Files/
  Blender Foundation/Blender */blender.exe); ODA adds Program Files/ODA
  (both still env > PATH first; shutil.which resolves .exe via PATHEXT)
- README cross-platform section: pathlib + explicit UTF-8 I/O + bytes-decoded
  subprocesses throughout; Windows advice (PYTHONUTF8=1, LongPathsEnabled,
  ODA as the primary DWG path since libredwg is rare there)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 15:10:44 +08:00
b871a2f8bd Portability: Blender/ODA discovery via env > PATH > macOS default
The two hardcoded macOS paths in code become last-resort defaults:
- build_showcase_variants: env BLENDER > shutil.which("blender") > app bundle
- cad_dxf_report: env ODA_CONVERTER > shutil.which("ODAFileConverter") > app
  bundle (env override existed already; PATH lookup is new)
Docs annotate the macOS example paths with the discovery order.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 15:05:32 +08:00
23cf3af678 Web template: adopt session-evolved features + render-on-demand everywhere
Ported from the test3d-5 session build: in-page variant switching, share
link (full state in URL hash), auto tour, toast, building-grouped floor
toggles, per-(floor,category) geometry merge (draw calls), progressive
overview->standard loading. Hardened during the port: {{BUILD}} placeholder
restored (Date.now() defeated caching), single-GLB deployments skip the
phantom overview.glb phase, building-group fallback now derives from
floor-key prefixes (assemble_campus convention) instead of a hardcoded "A"
test, bookmarks completed (list + restore + remove + hash persistence).

Render-on-demand lands in BOTH the template and the offline viewer: static
scenes rendered at 60fps pegged the GPU/fans for identical frames —
invalidate()-driven rendering + shadowMap.autoUpdate=false (bake per
change). 27号 measured: template web 0 frames over 3s idle, offline viewer
25 frames total through load; features browser-verified (tour, bookmarks,
hash restore), zero console errors. window.__renders is the diagnostic
counter — idle growth must be 0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 12:55:03 +08:00
eb7eea2861 README: installation guide for agent CLIs (Claude Code / opencode / Codex)
- Claude Code: clone into ~/.claude/skills (SKILL.md frontmatter already
  Anthropic skill format, auto-discovered/triggered)
- opencode / Codex and other AGENTS.md-based tools: clone anywhere + an
  AGENTS.md pointer (read SKILL.md first, obey DoD gates, run the suite)
- generic fallback preamble for any agent; runtime dependency list

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 11:52:26 +08:00
e1bbca3fe7 Organize repo layout for publishing: case docs into references/, add README
- 贝昂CAD诊断与skill优化.md / claudecode_prompt (annotated as archive) /
  beian corrected-config sample moved under references/
- README.md: what this is, pipeline map, layout, verification discipline

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 09:08:55 +08:00
ab5e72daae Leak gates: cross-evidence nets for unseen-project conventions
Mechanical pattern tools WILL miss new dialects; these gates are
ledger/cross-evidence INVARIANTS that hold for conventions never seen:

- frame_ledger (audit --frames <detect out-config>): every detected plan
  frame must be used by the config or listed in discarded_frames with a
  reason — silently ignored frames are where wings vanish
- area_declared (config declared_areas_m2): model footprint area vs
  经济技术指标表 within ±15% — 1#B lost half the building and only the
  site plan exposed it
- storey_count (config expected_storeys_above_ground): above-ground F<n>
  count vs 总图 labels / elevation ladder
- unknown_layer_dialect (read report): plan file with no *WALL*/*墙* layer
  = unfamiliar institute convention, map layers consciously

All three gates SKIP when unarmed (zero impact on existing projects);
regression suite +8 checks, all green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 09:04:58 +08:00
fc05464749 Productize site machinery + config automation (session-proven -> scripts/)
- register_site_outlines.py: point-to-edge ICP registration CLI (footprint
  union vs site outline / DIM_COOR corners), manifest-ready output, loud
  warning above 2 m residual
- massing_from_outline.py: honest massing spec CLI (outline x storeys x
  height, labeled 总图轮廓体量), manifest anchors on stdout
- detect_sheet_frames: multi-floor titles (四、六、八 / 十一至十四) expand to
  per-storey config entries sharing clip/offset — the 13号 b2 silent-floor-
  loss class is now prevented at the source; compound CN numerals parsed
  (十一/二十一 no longer collapse to F0 keys); per-frame DIM_ELEV ladders +
  uniform-step storey suggestion in the report (evidence, not auto-filled z)
- 27号 2# real data: 19-storey enumerated title auto-expands, step 3.0 x 11
  suggestion correct; regression suite +11 checks

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 08:28:05 +08:00
9729857549 Land the two deferred gaps: title-block frame clips + cross-floor datum gate
- detect_sheet_frames: title-block INSERTs (A0_V1/A0+0.5_V1/*图框*) define the
  clip window when they contain the title — pitch windows halved elongated
  sheets (13号 加长A0, one frame holding both towers); wall refine is clamped
  inside the frame rect; 13号 b1 real data: all 45 frames rect-clipped
- audit floors_aligned: cross-floor wall-profile datum check catches
  "self-consistent but misplaced" floors (13号 F3 错槽 85.8m that envelope
  centers PASSed); zero-shift guard kills the dense-podium false positive
  (27号 1#A PH matched "better" 1.5m off while already fitting in place)
- 门卫 size mismatch root-caused as representation granularity (gate compound
  vs kiosk symbol), not an extraction bug — closed in the log
- regression suite +6 checks (titleblock / crossdatum bad+good), all three
  projects re-audited with no false positives

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 08:05:57 +08:00
1e11d38fa9 derive: per-cluster footprint hulls — twin-tower floors no longer bridged
concave_hull over all points cannot split disconnected masses: 13号 一号楼
standard floors (A/B towers in one floor key) got ONE 135.6m hull and
use_footprint_slabs laid plates across the 36m void (user-visible as
"triangular links" between towers). Points are now union-find clustered
(footprint_cluster_linkage, 6m grid buckets; segment endpoints forced into
one cluster) and hulled per cluster — real link bridges keep clusters
merged via their walls. F4-F10 now 2x49.8m hulls matching the site-plan
OBB; 黄桥/27号 re-derived with no regression; DoD visual check extended
(look at the AIR between masses in front/side views). Regression: twintower
scenario (+3 checks).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 07:48:22 +08:00
c6df3f6ffb Log: plot-27 complete end-to-end — quality table filled for all three projects
1#A 17F(四层=裙房顶大平层), 1#B 10F(户型块拼装+假x-pitch教训), 2# 22F(参考框
修复后全列对齐); site: EVTR outlines + DIM_COOR corner ICP registration,
3#/4# honest massing from site outlines; campus 7 buildings/100 floors,
all gaps positive; offline viewers browser-verified zero console errors
for 黄桥/13号/27号.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 00:39:32 +08:00
fe3d3cbbee Generalization hardening from 27号 (rounds 5-8): 6 gap fixes, all TDD
- detect_sheet_frames: auxiliary-titled frames (非机动坡道/无障碍改造…) never
  become the alignment reference; wall-profile correlation fallback when a
  frame has no axis geometry (coverage+peak-ratio gated); bogus x-pitch from
  stray same-row titles distrusted (pitch_x < 0.7*pitch_y); plan titles inside
  cached-xref blocks scanned too
- cad_dxf_report: cached_xref_content warning (msp INSERT stubs + in-file
  block cache -> expand_blocks ≈ bind, not a re-export ask)
- derive_showcase_spec: floor_order gaps warn loudly in both directions
- assemble_campus: per-building rotation_deg overrides the global one
- SKILL.md updated; regression suite +14 checks (auxref/nogrid/mixedrow/
  blocktitle/cachedxref/floor_order/rotation scenarios)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 00:39:32 +08:00
07e3c12956 Log: plot-13 above-ground complete — hotel tower extracted, campus assembled from site-plan anchors
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 23:22:41 +08:00
967a8a24f5 Log: plot-13 tower block re-anchored — shared-origin + wall-profile correlation; site plan proves 85.8m twin spacing
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 23:10:41 +08:00
f0b225b80e Log: plot-13 unblocked — xref content is CACHED inside the delivered DWGs
X-00-0011 (site plan) holds 5,306 entities and X-01-0200 (elevations)
4,443 as ordinary block definitions; modelspace only has the INSERT stub,
so the report's msp-count flagged near_empty. libredwg drops the xref
flag, ODA keeps xref_path with flags=0 — either way expand_blocks IS the
bind. Site plan is metric surveying coords (55km/57km) with bound-prefix
layers (X-00-0011$0$...) and 40 DIM_COOR callouts. Next round: teach the
report to flag cached-xref blocks instead of asking for re-exports, scan
block content for frame titles, and anchor the tower wings from the dx
outlines + coordinate callouts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 22:29:20 +08:00
06776e4b76 detect_sheet_frames: MTEXT height probe uses char_height
dxf.get("height") raises DXFAttributeError on MTEXT (undefined-for-type);
a short MTEXT reaching the title probe crashed the 27号 1#A detection.
Fixture gains a short MTEXT note.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 22:22:31 +08:00
778f6b0b5d Log: plot-27 gatehouse + substation end-to-end; site plan has DIM_COOR anchors
Both small buildings pass the pipeline (gatehouse all gates PASS; substation
glazing legitimately SKIP, and drop_unsupported_roof_lines auto-removed 43m
of elevation-frame bleed — first organic catch on a new project). The site
plan carries 104 DIM_COOR coordinate callouts, so plot-27 placement needs no
external data. Remaining: the three big building sets, site manifest,
campus assembly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 22:19:43 +08:00
d7cb3a2151 Log: plot-13 basement is zoned too; anchor hunt continues next round
The 平时平面 anchor candidate in the garage set is an empty shell (15
lines); zone B1_2 carries real walls/stairs/columns but spans one 40m
strip. Zone stitching is mechanically ready (repeated keys + clip trim);
if the stitched garage still lacks both tower shafts, the bound-XREF site
plan / elevations must come from the user (A-00 and 200-299 are shells).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 22:07:49 +08:00
2ab16dab34 Log: retract tower spacing claim — side-by-side wing frames are sheet layout
The 'combined ground plan' frame is a pure-text notes region, F1's 70m of
walls cannot hold two 49m towers, and each wing title owns its own frame:
the standard-floor region lays A座/B座 side by side, so the 38m frame gap
is SHEET spacing, not building geometry (the 104m clip was wall-bbox
refinement swallowing the neighbour frame). True wing spacing must come
from a single frame containing both wings (A-03 basement shafts or a bound
site plan). floors_aligned has a blind spot for this shape — candidate
hardening: explicit anchor_frame for multi-wing configs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 22:03:34 +08:00
39528b38e9 derive: trim segments to the frame clip (Liang-Barsky)
Membership by midpoint/endpoint kept whole segments, so long table borders
and annotation rules carried the full sheet width into a floor — 13号's 56m
frame emitted 143m of geometry and footprint hulls grew stray plates.
Segments are now clipped to the frame rect; fully-inside geometry passes
through unchanged. Regression: a 140m line crossing a 40m frame comes out
frame-wide. Dense sheet layouts hit this; 贝昂's wide frame pitch never did.

Round-3 log: tower-1 twin towers aligned and gated (union-clip standard
floors; PH centered on cores, RF parapet bbox-anchored, wing offsets
self-consistent to 50mm); podium F1-F3 zoning still open.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 22:01:20 +08:00
bccc9f41d6 detect_sheet_frames: axis ticks vote like grid lines; expanded axis window
Two vote-killers found on 13号地块 towers: axis geometry sits OUTSIDE the
wall-tight clip (stubs beyond the facade), and min_grid_len = pitch*0.25
discarded 0.8m axis-number ticks outright. Axis candidates are now
collected in a pitch*0.16-expanded window, and strictly axis-parallel
stubs (pitch*0.004..0.05) count alongside full-span lines — same-position
ticks cluster into one vote. Synthetic tick fixture goes WEAK -> full votes.

Honest finding logged: the 13号 tower frames genuinely contain NO axis
geometry (all 249 ticks belong to other frames), so votes=0 is the correct
verdict there — modeling proceeds via clip-corner fallback plus mandatory
per-floor overlay verification; wall-position correlation noted as the
future alignment source when axes are absent.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 21:42:03 +08:00
12ddc9488d detect_sheet_frames: wildcard axis-layer defaults (prefixed-layer institutes)
13号地块 prefixes every layer (A_DOTE/A_AXIS/A_WALL); the exact-token
axis defaults silently zeroed grid-correlation votes for all 44 frames.
Defaults now *AXIS*/*DOTE*; rowframe fixture gains a layer_prefix="A_"
variant asserting the grid still votes (no WEAK).

Logged open item: the tower sheets still vote 0 after the pattern fix —
axis stubs vs full-span grid lines or clip-window semantics, to debug next
round; plus the plot-13 storey table and the finding that per-floor
multi-clip stitching already works via repeated floor keys.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 21:36:01 +08:00
d1ea460042 Generalization round 2 progress: plot-13/27 read stage complete via ODA fallback
ODA auto-fallback validated at scale: plot-13 18/18 files ok (8 rescued),
plot-27 13/13 ok (9 rescued) — previously 9 failed + 8 empty-modelspace
main sheets. Documented the next structural gaps found in plot-13's tower
sheets: multi-wing (座) title prefixes stored as separate text entities,
zoned per-level plans needing multi-clip stitching (one clip per floor today),
and typical-floor (标准层) replication; elevations and site plan are unbound
XREF shells, so storey heights need another source.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 21:28:40 +08:00
221626b1c7 Generalization hardening from test3d-7 round 1 (黄桥文体中心): 8 gap fixes
Conversion/encoding chain (libredwg on Chinese TArch DWGs):
- run_dwg2dxf: capture bytes, decode leniently (GBK console output crashed
  the batch under subprocess text=True)
- sanitize_dxf_comments: byte-level, code/value pair walk — the UTF-8
  errors="ignore" round-trip mangled every GBK CJK string ("一层平面图"
  -> "一平图") and eating XRECORD "999" VALUE lines corrupted files
- read_doc: recover fallback also on ValueError; scrub_surrogates keeps one
  corrupt drawing from killing the whole report
- decode_mif in report + frame detector: \M+5XXXX escapes (whole 黄桥 set)
  restored so plan-title detection works at all
- ODA auto-fallback: reconvert DWGs whose libredwg DXF fails inspection or
  reads an empty modelspace (黄桥 plans: 0 entities via dwg2dxf, 21k via
  ODA); env ODA_CONVERTER override, fake-converter regression test

Frame detection:
- detect_sheet_frames expands INSERTs (memoized, depth<=3) when collecting
  axis/wall lines — 黄桥 wraps each frame's grid in anonymous A$C... blocks
  (msp had 8 DOTE lines, blocks held 700); all 7 frames went from WEAK
  clip-corner fallback to grid-aligned votes x=14

Extraction judgment rules (both loud, both default-on, both switchable):
- drop_isolated_clusters: tiny segment clusters far from the main mass are
  sheet-legend content drawn on real layers (title-block window symbols made
  every floor's footprint grow a sliver fin)
- drop_unsupported_roof_lines: roof outlines with no footprint/cap plate
  within 2m beneath are hatch-only-support canopies that extrude into
  floating ribbons (F3 SW 坡屋面, B1 ground canopy at -5.85m)

Tests: 64 -> 75 checks, incl. GBK/MIF synthetic DXFs, block-wrapped grid
alignment (non-uniform bays — uniform grids make subset correlation
ambiguous), legend-cluster and unsupported-roof fixtures.
references/generalization_test_log.md tracks the test protocol, per-project
gate table, and every gap with its regression coverage.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 21:23:20 +08:00
6ace84ffba Campus pipeline hardening: backend parity, wall union, mullion grids, Draco tooling
Sandbox round (Linux):
- detect_sheet_frames.py: multi-frame sheet splitter (column AND row layouts),
  grid-vote per-floor offsets, section-elevation harvesting for storey heights
- dwg_dump_json.mjs + dwgjson_to_dxf.py: WASM libredwg DWG->DXF fallback
  (blocks/INSERT preserved, ATTRIB->TEXT so axis labels survive)
- assemble_campus.py: manifest-driven campus assembly with mandatory
  neighbour-gap gate (overlap = exit 3, 0.1-0.3m flagged as expansion joints)
- site_context_from_dump.py: site-context floors (ground/roads/parking/
  fence/trees/context massings) from site-plan dumps
- write_offline_viewer.py + assets/offline-viewer-libs/: fully-offline
  single-file viewer (vendored three r147 + pako, gzip-embedded GLB)
- audit: clip-scoped coverage figures; report: multi_frame_sheet warning;
  audit gate floors_aligned catches the diagonal-staircase failure mode

Mac round:
- build_blender_showcase.py now honors slab_bounds_fallback and prefers
  footprint polygons for generated roofs (bounds rects made roof plates jut
  past the facade and buried campuses under full-extent slabs); contract now
  matches spec_to_glb.py exactly
- merge_wall_solids (default off) in BOTH backends: shapely union in
  spec_to_glb.py, native delaunay_2d_cdt union in Blender; endpoint-shared
  wall ends pre-extended w/2 so L-corners close seamlessly (flat caps leave
  a notch a union alone cannot fill) while openings stay flat
- glazing_mullions (default off): curtain-wall panel grid (verticals every
  glazing_panel_w + floor-line transoms) as pseudo wall segments in the
  <floor>__walls node; glass pane kept
- build_showcase_variants.py keeps source_file=="site" floors intact in all
  variants (roads/trees live on filtered categories)
- web template: instanced low-poly trees from metadata site_trees,
  grade-level shadow catcher (was at basement depth), data-URI favicon
- tools/compress.mjs deps pinned (package.json); 15MB campus GLB -> 0.57MB
- tests: 24 -> 52 checks (wall union, mullions, byte-identical defaults)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 17:44:41 +08:00
74cc7168f7 Add corrected building config (clean recipe matching _output_building_complex)
The reusable, verified config for the 主楼+辅楼 set: expand_blocks=false,
S-GRID-derived split_x/offset per multi-floor sheet (detail blocks cut to the
non-main side), structural footprint_categories, roof caps via roof_specs for the
empty XREF-shell sheets. Re-derive with model-converter-3d's derive_showcase_spec
(--config this file). 11 real floors; the 4 XREF-shell floors need the XREF bound
and re-exported to add.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 21:58:05 +08:00
a6ac166049 Initial commit: cad-building-showcase skill
Agent-led CAD-drawing → 3D web showcase pipeline. Inspects CAD reports,
maps layers/floors, extracts a normalized building spec (with block-probed
glazing and audit gates), builds Blender/trimesh GLB variants, and assembles
a Three.js web viewer. Includes XREF-shell detection and a regression test.

Large inputs/outputs (work/, outputs/, source_cad/, renders) are gitignored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 16:16:04 +08:00