1
0
Fork 0

sparkles: Paperless front left

This commit is contained in:
Joost De Cock 2018-12-28 15:42:53 +01:00
parent 3f447019e0
commit c152c42976
12 changed files with 229 additions and 90 deletions

View file

@ -184,6 +184,40 @@ export default part => {
// Paperless?
if (paperless) {
let offset = 0;
for (let pid of [
"placketBottomOuterEdgeUnder",
"placketBottomOuterEdgeFold",
"placketBottomOuterEdgeOver",
"placketCfHem",
"placketBottomInnerEdgeOver",
"placketBottomInnerEdgeFold",
"placketBottomInnerEdgeUnder"
]) {
offset += 15;
macro("hd", {
from: points.placketBottomEdge,
to: points[pid],
y: points.placketBottomEdge.y + offset + 3 * sa
});
}
let len =
points.cfNeck.dist(points.cfHips) * (1 - options.buttonFreeLength);
points.button0 = points.placketTopEdge;
let j;
for (let i = 0; i < options.buttons; i++) {
j = i + 1;
macro("vd", {
from: points["button" + j],
to: points["button" + i],
x: points.placketTopEdge.x - 15
});
}
macro("vd", {
from: points.placketBottomEdge,
to: points.placketTopEdge,
x: points.placketTopEdge.x - 30
});
}
return part;