feat: publish junction region connectivity metrics
This commit is contained in:
1 parent
3a8af43140
commit
2b79085042
5 files changed
+19
No files matched your search
@@ -172,6 +172,10 @@ for (const [field, value] of [
|
||||
}
|
||||
assert.equal(teeCore.status, 'supported');
|
||||
assert.equal(teeCore.sharedEdgeRefs.length, teeBoundaryGraph.sections.length);
|
||||
assert.equal(teeCore.connectedEntryCount, teeBoundaryGraph.sections.length);
|
||||
assert.equal(teeCore.requiredPavementConnected, true);
|
||||
assert.equal(teeCore.ringSelfIntersects, false);
|
||||
assert.ok(teeCore.ringArea > 0);
|
||||
assert.ok(teeCore.ring.every((coordinate) => coordinate.every(Number.isFinite)));
|
||||
const safeHole = buildJunctionBoundaryGraph(
|
||||
tee.topology,
|
||||
@@ -183,6 +187,7 @@ const safeHole = buildJunctionBoundaryGraph(
|
||||
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 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