fix: fill junction core and connect cluster lane trajectories
This commit is contained in:
1 parent
695bf21a84
commit
6a8f026d12
12 files changed
+527
-83
No files matched your search
@@ -692,3 +692,22 @@ const editedCurvedGraph = buildJunctionBoundaryGraph(
|
||||
assert.deepEqual(editedCurvedGraph.sections[0].outer, originalCurvedGraph.sections[0].outer);
|
||||
assert.ok(Math.abs(editedCurvedGraph.sections[0].transitionMeters - 16) < 1e-9);
|
||||
assert.notDeepEqual(editedCurvedGraph.sections[0].inner, originalCurvedGraph.sections[0].inner);
|
||||
|
||||
// An internal seam must be covered along its full length, including between
|
||||
// sample positions. The narrow notch below would escape quarter-point probes.
|
||||
{
|
||||
const { segmentCoveredByRing } = require('../src/compile/junction-boundary-graph');
|
||||
const notch = [
|
||||
[0, 0],
|
||||
[1, 0],
|
||||
[1, 1],
|
||||
[0.15, 1],
|
||||
[0.15, 0.4],
|
||||
[0.1, 0.4],
|
||||
[0.1, 1],
|
||||
[0, 1],
|
||||
[0, 0],
|
||||
];
|
||||
assert.equal(segmentCoveredByRing([0, 0.5], [1, 0.5], notch), false);
|
||||
assert.equal(segmentCoveredByRing([0, 0], [1, 0], notch), true);
|
||||
}
|
||||
Reference in new issue
Block a user