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>
This commit is contained in:
2026-07-02 22:01:20 +08:00
parent bccc9f41d6
commit 39528b38e9
3 changed files with 95 additions and 1 deletions

View File

@@ -91,6 +91,20 @@ clip 合并——**该能力已存在**:floor_specs 为列表、buckets 按 ke
机房顶 49.8、女儿墙 51.8、B1=-5.95、B2=-9.65;夹层框(F1M/F2M/B1M)与
分区地下框首版跳过;地下体量建议统一由 A-03 地库图集出,避免双份几何。
11. **跨 clip 长线整条渗入楼层**(13号):derive 的 clip 判定是"中点或端点
在框内即整条保留"——表格边框/注记长线把整张图纸宽度带进楼层(56m 框吐出
143m 几何,footprint 凸包长出游离大板,顶视图一片狼藉)。修复:新增
`clip_segment_to_rect`(Liang-Barsky)把线段**裁剪**到 clip 矩形,全内
线段原样通过。回归:40m 框内 140m 穿越线裁到框宽。贝昂框距大未暴露此坑,
图框密排的图集必踩。
13号 一号楼当前状态(round 3):标准层双塔(F4~F10,union-clip 单条目)+
机房/屋顶(塔芯居中/女儿墙 bbox 锚定,两翼 offset 自洽性 50mm)已对齐,
audit 三门禁 PASS,GLB 双塔顶视形态正确(间距 85.8m)。**未决**:F1~F3
裙房与塔楼错位——F1 框仅 88m 宽盖不住 135m 双塔,一层疑似也是分区图
(另一分区待在 45 候选框或 A-03 地库图集中确认);下一轮先解裙房分区,
再做叠图逐层核验与 viewer 目检。
(待续)
3. **消毒步骤误删 XRECORD 的 999 数值行**(发现于苏州博物馆/test3d-8 首跑):