1
0
Fork 0

construction: Changes to pass the antman test

This commit is contained in:
Joost De Cock 2018-07-30 13:42:28 +02:00
parent 29a3e8987d
commit 0f28d90147
4 changed files with 20 additions and 26 deletions

View file

@ -32,7 +32,8 @@ var back = {
.curve(points.armholePitchCp1, points.armholePitchCp2, points.shoulder)
.line(points.neck)
.curve(points.neckCp1, points.cbNeck, points.cbNeck)
.close();
.close()
.attr("class", "fabric");
// Final?
@ -52,18 +53,7 @@ var back = {
points.logo = points.title.shift(-90, 100);
snippets.logo = new snippet("logo", points.logo);
console.log("path offset");
points.t1 = new point(100, 400);
points.t2 = new point(200, 400);
points.t3 = new point(200, 500);
points.t4 = new point(100, 500);
paths.test = new path()
.move(points.t1)
.line(points.t2)
.line(points.t3)
.line(points.t4)
.close();
paths.test.offset(10);
//paths.sa = paths.seam.offset(10).attr('class', 'fabric sa');
};
if (final) {

View file

@ -15,7 +15,10 @@ var base = {
} = freesewing.utils.shorthand(part);
// Center back (cb) vertical axis
points.cbNeck = new point(0, options.backNeckCutout);
points.cbNeck = new point(
0,
options.backNeckCutout * measurements.neckCircumference
);
points.cbShoulder = new point(
0,
(measurements.shoulderSlope - options.shoulderSlopeReduction) / 2
@ -23,7 +26,8 @@ var base = {
points.cbArmhole = new point(
0,
points.cbShoulder.y +
(measurements.bicepsCircumference + options.bicepsEase) *
measurements.bicepsCircumference *
(1 + options.bicepsEase) *
options.armholeDepthFactor
);
points.cbWaist = new point(
@ -37,7 +41,7 @@ var base = {
// Side back (cb) vertical axis
points.armhole = new point(
measurements.chestCircumference / 4 + options.chestEase / 4,
(measurements.chestCircumference * (1 + options.chestEase)) / 4,
points.cbArmhole.y
);
points.waist = new point(points.armhole.x, points.cbWaist.y);
@ -45,7 +49,8 @@ var base = {
// Shoulder line
points.neck = new point(
measurements.neckCircumference / options.collarFactor,
(measurements.neckCircumference * (1 + options.collarEase)) /
options.collarFactor,
0
);
points.shoulder = new point(