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

View file

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