Files
cad-building-showcase/references/multi_frame_tarch.md

67 lines
3.0 KiB
Markdown

# Multi-Frame Sheets and TArch/天正
## Contents
1. Detecting sheet walls
2. Alignment evidence
3. Titles and storeys
4. Clip risks
5. TArch mapping preset
## Detecting Sheet Walls
Chinese architectural DWGs often place all plans, elevations, sections, and details in one modelspace. Run `detect_sheet_frames.py`; never model the whole file as one floor.
The detector:
- scans plan titles in modelspace and cached blocks;
- rejects catalog/title-block copies and auxiliary titles;
- prefers title-block INSERT bboxes over pitch-only windows;
- expands enumerated/ranged titles such as `三、五层` and `十一至十四层`;
- emits a config skeleton plus a Markdown evidence report.
Pass every detector output config to audit with `--frames`. Account for every detected plan frame in extraction config or `discarded_frames` with a nonempty reason.
## Alignment Evidence
Prefer structural-grid voting. TArch grids often live on `DOTE`, not `AXIS`. When through grids are absent, accept tick-grid voting. When no axes exist, use wall-profile correlation independently in X/Y. Use clip-corner anchoring only as a weak fallback.
Require overlay review for `WEAK grid match` and `wall-correlated` results. The audit cross-floor datum gate must reject a strong correlation peak at a nonzero shift; envelope centers alone cannot detect a floor placed into the wrong tower slot.
Never stack frames without offsets. That preserves sheet-layout pitch and creates the classic diagonal staircase building.
## Titles and Storeys
Read per-frame elevation ladders from section/elevation frames, but treat suggested storey tables as evidence rather than truth. Stair sections can contain half-storey rhythms; podium, machine-room, and roof heights differ.
Set explicit `z`, `height`, and `floor_order`. The schema rejects floor-order gaps and ghost keys.
## Clip Risks
Title-block or refined clips can still swallow adjacent rows, details, legends, or revision tables. Investigate when a footprint dimension is 2-4x its siblings or contains distant sliver polygons. Tighten the clip band or use isolated-cluster filtering; do not simply raise noise thresholds until the artifact disappears.
## TArch Mapping Preset
Start consciously from this calibration, then inspect actual top layers:
- walls: `WALL`, `*WALL*`, `*墙*`
- columns: `COLUMN`, `*COL*`
- glazing: `CURTWALL`, `*GLAZ*`, `*幕墙*`, `*玻璃*`
- roof: `屋面`, `*屋顶*`
- detail: `STAIR`, `EVTR`, `平面`, `开口`
- grid: `DOTE`, `AXIS`
Doors/windows may both be INSERTs on `WINDOW`, with leaf geometry on layer `0`. Use block-name classification:
```json
{
"expand_blocks": ["$TCHSYS$*", "$DorLib2D$*"],
"block_name_categories": {
"glazing": ["$TCHSYS$WIN2D*"],
"doors": ["$DorLib2D$*"]
}
}
```
Exclude annotation/frame layers such as `*-IDEN`, `*图签*`, `PUB_*`, `DIM_*`, `*TEXT*`, `面积核算`, `格子线`, `SEC-*`, `立面`, `剖面`, `家具`. TArch column fills can be HATCH-only; pull structure from the structural drawing set instead of inventing columns.