Skip to content

Commit 977021a

Browse files
committed
Delete fancy contourcarpet code now handled elsewhere
1 parent ea7a71f commit 977021a

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/traces/contourcarpet/join_all_paths.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,6 @@ module.exports = function joinAllPaths(trace, pi, perimeter, ab2p, carpet, carpe
1818
var i;
1919
var fullpath = '';
2020

21-
/*
22-
* Nominating for deletion. I believe I've handled this in convert_to_constraints
23-
*/
24-
/* if(!pi.edgepaths.length) { // ||
25-
var needsOutline = false;
26-
27-
if(trace.contours.type === 'levels') {
28-
// If the lower-left point is in bounds, then it's the case that
29-
// the whole thing needs at least an outline:
30-
needsOutline = pi.z[0][0] < pi.level;
31-
} else {
32-
// TODO: TODO!
33-
switch(trace.contours.operation) {
34-
}
35-
}
36-
37-
if(needsOutline) {
38-
var seg, xp, yp;
39-
var segs = [];
40-
for(i = 0; i < carpetcd.clipsegments.length; i++) {
41-
seg = carpetcd.clipsegments[i];
42-
xp = map1dArray([], seg.x, xa.c2p);
43-
yp = map1dArray([], seg.y, ya.c2p);
44-
segs.push(makepath(xp, yp, seg.bicubic));
45-
}
46-
fullpath = 'M' + segs.join('L') + 'Z';
47-
}
48-
}*/
49-
5021
var startsleft = pi.edgepaths.map(function(v, i) { return i; });
5122
var newloop = true;
5223
var endpt, newendpt, cnt, nexti, possiblei, addpath;

0 commit comments

Comments
 (0)