test(junction): cover irregular six-arm closure
This commit is contained in:
1 parent
1de7bc2bd0
commit
ff7f011826
1 file changed
+16
@@ -518,3 +518,19 @@ const irregularFiveArmGraph = buildJunctionBoundaryGraph(
|
||||
irregularFiveArm.helpers,
|
||||
);
|
||||
assertCoreGeometry(irregularFiveArm.topology, irregularFiveArmGraph, point(0, 0));
|
||||
|
||||
const irregularSixArm = topology(
|
||||
'irregular-six-arm',
|
||||
[2, 61, 119, 184, 247, 311].map((angle, index) => ({
|
||||
widthMeters: [4, 6, 5, 7.5, 3.5, 8][index],
|
||||
line: [point(0, 0), point(Math.sin((angle * Math.PI) / 180) * 47, Math.cos((angle * Math.PI) / 180) * 47)],
|
||||
})),
|
||||
);
|
||||
assert.equal(irregularSixArm.topology.arms.length, 6);
|
||||
const irregularSixArmGraph = buildJunctionBoundaryGraph(
|
||||
irregularSixArm.topology,
|
||||
point(0, 0),
|
||||
{ outerRadiusFor: () => 30, innerRadiusFor: () => 10 },
|
||||
irregularSixArm.helpers,
|
||||
);
|
||||
assertCoreGeometry(irregularSixArm.topology, irregularSixArmGraph, point(0, 0));
|
||||
Reference in new issue
Block a user