From d67a58b3dd27a658209349e0c135adb73b70c4c5 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 31 Aug 2022 14:32:47 +0100 Subject: [PATCH] #340 mesh.js: Simplify function signature of extractArcs --- src/mesh.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh.js b/src/mesh.js index e0b7097..c33ece3 100644 --- a/src/mesh.js +++ b/src/mesh.js @@ -7,12 +7,12 @@ export default function(topology) { export function meshArcs(topology, object, filter) { var arcs, i, n; - if (arguments.length > 1) arcs = extractArcs(topology, object, filter); + if (arguments.length > 1) arcs = extractArcs(object, filter); else for (i = 0, arcs = new Array(n = topology.arcs.length); i < n; ++i) arcs[i] = i; return {type: "MultiLineString", arcs: stitch(topology, arcs)}; } -function extractArcs(topology, object, filter) { +function extractArcs(object, filter) { var arcs = [], geomsByArc = [], geom;