1
0
Fork 0

chore(aaron): Ported aaron to new measurements. See #416

This commit is contained in:
Joost De Cock 2020-06-01 14:52:31 +02:00
parent ecc6147d29
commit 565cb37063
3 changed files with 10 additions and 7 deletions

View file

@ -24,8 +24,8 @@ export default {
measurements: [
'bicepsCircumference',
'chestCircumference',
'hpsToHipsBack',
'naturalWaistToHip',
'hpsToWaistBack',
'waistToHips',
'neckCircumference',
'shoulderSlope',
'shoulderToShoulder',

View file

@ -36,6 +36,8 @@ export default function (part) {
options.backlineBend
)
points.anchor = points.cbNeck.clone()
// Seamline
paths.seam = new Path()
.move(points.cbNeck)

View file

@ -24,14 +24,13 @@ export default function (part) {
// Handle stretch
for (let i in points) points[i].x = points[i].x * (1 - options.stretchFactor)
// Rename cb (center back) to cf (center front)
for (let key of ['Neck', 'Shoulder', 'Armhole', 'Waist', 'Hips', 'Hem']) {
points[`cf${key}`] = new Point(points[`cb${key}`].x, points[`cb${key}`].y)
//delete points[`cb${key}`];
// Clone cb (center back) into cf (center front)
for (let key of ['Neck', 'Shoulder', 'Armhole', 'Hips', 'Hem']) {
points[`cf${key}`] = points[`cb${key}`].clone()
}
// Neckline
points.cfNeck = points.cfNeck.shift(-90, options.necklineDrop * measurements.hpsToHipsBack)
points.cfNeck = points.cfNeck.shift(-90, options.necklineDrop * measurements.hpsToWaistBack)
// Strap
points.strapCenter = points.neck.shiftFractionTowards(
@ -87,6 +86,8 @@ export default function (part) {
points.armholeCp2 = points.armhole.shiftFractionTowards(points.armholeCorner, 0.5)
points.strapRightCp1 = points.strapRight.shiftFractionTowards(points.armholeCorner, 0.5)
points.anchor = points.cfNeck.clone()
// Seamline
paths.seam = new Path()
.move(points.cfNeck)