construction: Front neck opening
This commit is contained in:
parent
4c8999a4a0
commit
b77c146a7e
2 changed files with 19 additions and 5 deletions
|
@ -99,7 +99,6 @@ var base = {
|
||||||
points._tmp4,
|
points._tmp4,
|
||||||
points.cbNeck.y
|
points.cbNeck.y
|
||||||
);
|
);
|
||||||
points.neckCp2 = points.cbNeck.shift(0, points.cbNeck.dx(points.neck) / 2);
|
|
||||||
|
|
||||||
// Anchor point for sampling
|
// Anchor point for sampling
|
||||||
points.gridAnchor = points.cbHips;
|
points.gridAnchor = points.cbHips;
|
||||||
|
|
|
@ -6,16 +6,31 @@ var front = {
|
||||||
let part = new pattern.Part().copy(pattern.parts.back);
|
let part = new pattern.Part().copy(pattern.parts.back);
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
let {sa, point, points, Path, paths, Snippet, snippets, options, measurements, final, paperless, macro} = freesewing.utils.shorthand(part);
|
let {sa, Point, points, Path, paths, Snippet, snippets, options, measurements, final, paperless, macro} = freesewing.utils.shorthand(part);
|
||||||
|
|
||||||
|
// Cut arm a bit deeper at the front
|
||||||
let deeper = measurements.chestCircumference * options.frontArmholeDeeper;
|
let deeper = measurements.chestCircumference * options.frontArmholeDeeper;
|
||||||
points.armholeHollowCp2.x -= deeper;
|
points.armholeHollowCp2.x -= deeper;
|
||||||
points.armholePitch.x -= deeper;
|
points.armholePitch.x -= deeper;
|
||||||
points.armholePitchCp1.x -= deeper;
|
points.armholePitchCp1.x -= deeper;
|
||||||
|
|
||||||
|
// Rename cb (center back) to cf (center front)
|
||||||
|
for (let key of ["Neck", "Shoulder", "Armhole", "Waist", "Hips"]) {
|
||||||
|
console.log("key is", key);
|
||||||
|
points[`cf${key}`] = new Point(
|
||||||
|
points[`cb${key}`].x,
|
||||||
|
points[`cb${key}`].y
|
||||||
|
);
|
||||||
|
delete points[`cb${key}`];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adapt neck opening
|
||||||
|
points.cfNeck = points.cfNeck.shift(-90, points.neck.x);
|
||||||
|
points.neckCp2 = points.cfNeck.shift(0, points.neck.x * 0.7);
|
||||||
|
|
||||||
paths.seam = new Path()
|
paths.seam = new Path()
|
||||||
.move(points.cbNeck)
|
.move(points.cfNeck)
|
||||||
.line(points.cbHips)
|
.line(points.cfHips)
|
||||||
.line(points.hips)
|
.line(points.hips)
|
||||||
.line(points.armhole)
|
.line(points.armhole)
|
||||||
.curve(points.armholeCp1, points.armholeCp2, points.armholeHollow)
|
.curve(points.armholeCp1, points.armholeCp2, points.armholeHollow)
|
||||||
|
@ -26,7 +41,7 @@ var front = {
|
||||||
)
|
)
|
||||||
.curve(points.armholePitchCp1, points.armholePitchCp2, points.shoulder)
|
.curve(points.armholePitchCp1, points.armholePitchCp2, points.shoulder)
|
||||||
.line(points.neck)
|
.line(points.neck)
|
||||||
.curve(points.neckCp1, points.cbNeck, points.cbNeck)
|
.curve(points.neckCp1, points.neckCp2, points.cfNeck)
|
||||||
.close()
|
.close()
|
||||||
.attr("class", "fabric");
|
.attr("class", "fabric");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue