1
0
Fork 0

wrench: Renamed armholeDepth to armholeDepthFactor

This commit is contained in:
Joost De Cock 2019-02-13 16:40:37 +01:00
parent 091d4aeac9
commit cbead8a6a2
2 changed files with 19 additions and 30 deletions

View file

@ -11,14 +11,9 @@ export default {
],
parts: ["top"],
options: {
shoulderSlope: {
deg: 15,
min: 0,
max: 25
},
lengthBonus: {
pct: 13,
min: 0,
armholeDepthFactor: {
pct: 50,
min: 40,
max: 60
},
chestEase: {
@ -26,9 +21,14 @@ export default {
min: 1,
max: 20
},
armholeDepth: {
pct: 50,
min: 40,
flare: {
deg: 15,
min: -10,
max: 30
},
lengthBonus: {
pct: 13,
min: 0,
max: 60
},
shoulderseamLength: {
@ -36,10 +36,10 @@ export default {
min: 5,
max: 25
},
flare: {
shoulderSlope: {
deg: 15,
min: -10,
max: 30
min: 0,
max: 25
}
}
};

View file

@ -28,7 +28,7 @@ export default function(part) {
(measurements.centerBackNeckToWaist + measurements.naturalWaistToHip);
// Armhole depth
let arm = measurements.shoulderToShoulder * options.armholeDepth;
let arm = shoulders * options.armholeDepthFactor;
// Shoulder seam length
let shoulderseam = shoulders * options.shoulderseamLength;
@ -42,17 +42,9 @@ export default function(part) {
// Armhole
points.bottomLeft = new Point(0, shoulders);
points.armholeTop = new Point(shoulders / 4, shoulders);
points.armholeBottom = points.armholeTop.shift(
0,
shoulders * options.armholeDepth
);
points.armholePitch = points.armholeTop
.shift(0, (shoulders * options.armholeDepth) / 2)
.shift(90, (shoulders * options.armholeDepth) / 5);
points.armholePitchCp1 = points.armholePitch.shift(
180,
(shoulders * options.armholeDepth) / 2.5
);
points.armholeBottom = points.armholeTop.shift(0, arm);
points.armholePitch = points.armholeTop.shift(0, arm / 2).shift(90, arm / 5);
points.armholePitchCp1 = points.armholePitch.shift(180, arm / 2.5);
points.armholePitchCp2 = points.armholePitchCp1.flipX(points.armholePitch);
// Left shoulder seam
@ -61,10 +53,7 @@ export default function(part) {
.rotate(options.shoulderSlope, points.armholeTop);
// Side seam
points.armgapBottom = points.armgapTop.shift(
0,
shoulders * options.armholeDepth
);
points.armgapBottom = points.armgapTop.shift(0, arm);
points.armgapBottom = points.armholeBottom.shiftTowards(
points.armgapBottom,
chest