feat: diagnose junction seam tolerance violations
This commit is contained in:
1 parent
efb7de6a83
commit
3cf6bebb10
1 file changed
+12
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user