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: [ measurements: [
'bicepsCircumference', 'bicepsCircumference',
'chestCircumference', 'chestCircumference',
'hpsToHipsBack', 'hpsToWaistBack',
'naturalWaistToHip', 'waistToHips',
'neckCircumference', 'neckCircumference',
'shoulderSlope', 'shoulderSlope',
'shoulderToShoulder', 'shoulderToShoulder',

View file

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

View file

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