1
0
Fork 0

bug: Fixed undercollar SA

This commit is contained in:
Joost De Cock 2019-03-16 17:56:38 +01:00
parent 99c7e26651
commit 1e9c7b36c0

View file

@ -33,7 +33,30 @@ export default function(part) {
title: "underCollar"
});
if (sa) paths.sa = paths.seam.offset(sa).attr("class", "various sa");
if (sa) {
paths.sa1 = new Path()
.move(points.collarstandCbTop)
.line(points.collarCbTop)
.offset(sa);
paths.sa2 = new Path()
.move(points.collarstandTip)
.line(points.notch)
.line(points.notchTip)
.offset(-1 * sa);
paths.sa = new Path()
.move(points.collarstandTip)
.line(paths.sa2.start())
.join(paths.sa2)
.line(points.notchTip)
.move(points.collarstandCbTop)
.line(paths.sa1.start())
.line(paths.sa1.end())
.line(points.collarCbTop)
.attr("class", "various sa");
paths.sa1.render = false;
paths.sa2.render = false;
}
}
return part;
}