test: cover multiple automatic exclusion holes
This commit is contained in:
1 parent
3d5cc2de6b
commit
36c5d5c4c8
2 files changed
+25
-2
No files matched your search
@@ -27,7 +27,8 @@
|
||||
- [x] 出口 A3:接缝≤1 cm,必要区域连通,无自交与排除区侵占;自动测试验证实际几何,不只是参数回显。
|
||||
- 已验证:3~6 臂核心环闭合、正面积、无自交、共享内边邻接;maxSharedSeamErrorMeters 已测量核心与入口内边端点的实际米制误差,尚不等同于全图层接缝测量;入口 ring 闭合/有限/正面积;短过渡、零长度边、零宽度和排除区相切均有失败回归。
|
||||
- 连通性现作为构建产物显式发布:`connectedEntryCount`、`requiredPavementConnected`、`ringArea` 和 `ringSelfIntersects`;安全孔洞回归验证孔洞保留时全部入口仍与核心相连。
|
||||
- 限定:当前支持安全孔洞与已知排除区;无法确认多个机动车通行区域时对象级拒绝闭合。全图层共享接入断面已验证,暂无任意曲线、多区域自动重求解承诺。
|
||||
- 限定:当前支持凹形边界、安全孔洞(含多个孔洞)与已知排除区;无法确认多个机动车通行区域时对象级拒绝闭合。全图层共享接入断面已验证,复杂排除区绕行和多通行区域自动重求解仍不承诺。
|
||||
- 新增回归:两个独立、包含于核心且不切断入口的孔洞会自动保留,所有入口仍保持连通;侵入必需通行区的排除区继续对象级拒绝并报告原因。
|
||||
- [ ] 此阶段不通过,不开启新几何控件。
|
||||
|
||||
## 3. 通用局部校正闭环
|
||||
@@ -51,7 +52,7 @@
|
||||
|
||||
已完成并验证的通用底座:共享来源拓扑、3~6 臂结构矩阵、重排/平移/旋转稳定性、核心与入口边界不变量、排除区域保护、入口过渡状态诊断、设施来源证据、预览/保存/刷新基础回归及端到端工作台流程。
|
||||
|
||||
明确遗留:接入位置/方向/左右边界的完整编辑闭环(过渡长度本次补齐),凹形与多区域连通性,全图层接缝测量,真实 OSM 视觉验收。导流岛自由编辑和独立右转通道继续留在后续任务。
|
||||
明确遗留:复杂排除区绕行和多机动车通行区域自动重求解,全图层接缝测量,真实 OSM 视觉验收。导流岛自由编辑和独立右转通道继续留在后续任务。
|
||||
|
||||
## 5. 通用性验收与发布
|
||||
|
||||
|
||||
@@ -188,6 +188,28 @@ const holedCore = buildCoreClosure(tee.topology, safeHole, point(0, 0));
|
||||
assert.equal(holedCore.status, 'supported');
|
||||
assert.equal(holedCore.holes.length, 1);
|
||||
assert.equal(holedCore.requiredPavementConnected, true, 'a contained hole must preserve every required entry seam');
|
||||
const multiHoleGraph = buildJunctionBoundaryGraph(
|
||||
tee.topology,
|
||||
point(0, 0),
|
||||
{ outerRadiusFor: () => 30, innerRadiusFor: () => 10 },
|
||||
tee.helpers,
|
||||
[
|
||||
{
|
||||
id: 'island:hole-west',
|
||||
isHole: true,
|
||||
ring: [point(-1.8, -1.8), point(-0.2, -1.8), point(-0.2, -0.2), point(-1.8, -0.2), point(-1.8, -1.8)],
|
||||
},
|
||||
{
|
||||
id: 'island:hole-east',
|
||||
isHole: true,
|
||||
ring: [point(0.2, 0.2), point(1.8, 0.2), point(1.8, 1.8), point(0.2, 1.8), point(0.2, 0.2)],
|
||||
},
|
||||
],
|
||||
);
|
||||
const multiHoleCore = buildCoreClosure(tee.topology, multiHoleGraph, point(0, 0));
|
||||
assert.equal(multiHoleCore.status, 'supported');
|
||||
assert.equal(multiHoleCore.holes.length, 2, 'multiple contained holes must be preserved automatically');
|
||||
assert.equal(multiHoleCore.requiredPavementConnected, true);
|
||||
const exclusionRing = [point(-1, -1), point(1, -1), point(1, 1), point(-1, 1), point(-1, -1)];
|
||||
const teeWithIsland = buildJunctionBoundaryGraph(
|
||||
tee.topology,
|
||||
|
||||
Reference in new issue
Block a user