From 3cf6bebb103cefea5fd81db32aad7634db313713 Mon Sep 17 00:00:00 2001 From: que01 Date: Thu, 10 Sep 2026 10:08:21 +0800 Subject: [PATCH] feat: diagnose junction seam tolerance violations --- src/compile/complex-junction.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/compile/complex-junction.js b/src/compile/complex-junction.js index 766f8ba..9fd2506 100644 --- a/src/compile/complex-junction.js +++ b/src/compile/complex-junction.js @@ -534,7 +534,18 @@ function buildComplexJunctionGeometry(model, cluster, helpers) { }, geometry: { type: 'Polygon', coordinates: [coreRing, ...(coreClosure.holes || [])] }, }); - else { + if (coreRing && coreClosure.maxSharedSeamErrorMeters > 0.01) { + cornerDiagnostics.push( + helpers.diagnostic( + 'warning', + `junction-cluster:${cluster.id}`, + [...nodeIds], + 'complex-junction-shared-seam-exceeds-tolerance', + `核心区域与入口断面的最大接缝误差为 ${coreClosure.maxSharedSeamErrorMeters.toFixed(3)} 米,超过 1 厘米验收阈值。`, + center, + ), + ); + } else { cornerDiagnostics.push( helpers.diagnostic( 'warning',