fix: Better notch placement in Carlton, fixes #373
This commit is contained in:
parent
dba53b0312
commit
d8231c9b0a
5 changed files with 21 additions and 31 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { calculateRatios } from './shared'
|
import { calculateRatios } from './shared'
|
||||||
|
|
||||||
export default function(part) {
|
export default function (part) {
|
||||||
let {
|
let {
|
||||||
paperless,
|
paperless,
|
||||||
sa,
|
sa,
|
||||||
|
@ -58,10 +58,7 @@ export default function(part) {
|
||||||
// Store collar length
|
// Store collar length
|
||||||
store.set(
|
store.set(
|
||||||
'backCollarLength',
|
'backCollarLength',
|
||||||
new Path()
|
new Path().move(points.cbNeck)._curve(points.neckCp2, points.neck).length()
|
||||||
.move(points.cbNeck)
|
|
||||||
._curve(points.neckCp2, points.neck)
|
|
||||||
.length()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Clean up
|
// Clean up
|
||||||
|
@ -86,11 +83,7 @@ export default function(part) {
|
||||||
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
|
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
|
||||||
.line(points.neck)
|
.line(points.neck)
|
||||||
.curve_(points.neckCp2, points.cbNeck)
|
.curve_(points.neckCp2, points.cbNeck)
|
||||||
paths.seam = paths.seam1
|
paths.seam = paths.seam1.join(paths.dart).join(paths.seam2).close().attr('class', 'fabric')
|
||||||
.join(paths.dart)
|
|
||||||
.join(paths.seam2)
|
|
||||||
.close()
|
|
||||||
.attr('class', 'fabric')
|
|
||||||
|
|
||||||
paths.backStay = new Path()
|
paths.backStay = new Path()
|
||||||
.move(points.bpStart)
|
.move(points.bpStart)
|
||||||
|
@ -105,8 +98,8 @@ export default function(part) {
|
||||||
|
|
||||||
if (complete) {
|
if (complete) {
|
||||||
macro('sprinkle', {
|
macro('sprinkle', {
|
||||||
snippet: 'notch',
|
snippet: 'bnotch',
|
||||||
on: ['armholePitch', 'bpTriangleTip']
|
on: ['shoulder', 'bpTriangleTip']
|
||||||
})
|
})
|
||||||
|
|
||||||
macro('grainline', {
|
macro('grainline', {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export default function(part) {
|
export default function (part) {
|
||||||
let {
|
let {
|
||||||
paperless,
|
paperless,
|
||||||
sa,
|
sa,
|
||||||
|
@ -60,6 +60,10 @@ export default function(part) {
|
||||||
})
|
})
|
||||||
points.logo = new Point(points.bottomRight.x * 0.75, points.bottomRight.y * 0.65)
|
points.logo = new Point(points.bottomRight.x * 0.75, points.bottomRight.y * 0.65)
|
||||||
snippets.logo = new Snippet('logo', points.logo)
|
snippets.logo = new Snippet('logo', points.logo)
|
||||||
|
snippets.waistNotch = new Snippet(
|
||||||
|
'notch',
|
||||||
|
points.bottomRight.shiftFractionTowards(points.topRight, 0.5)
|
||||||
|
)
|
||||||
|
|
||||||
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { calculateRatios } from './shared'
|
import { calculateRatios } from './shared'
|
||||||
|
|
||||||
export default function(part) {
|
export default function (part) {
|
||||||
let {
|
let {
|
||||||
paperless,
|
paperless,
|
||||||
sa,
|
sa,
|
||||||
|
@ -222,10 +222,7 @@ export default function(part) {
|
||||||
paths.hemBase = new Path().move(points.flbHem).line(points.hem)
|
paths.hemBase = new Path().move(points.flbHem).line(points.hem)
|
||||||
paths.saBase.render = false
|
paths.saBase.render = false
|
||||||
paths.hemBase.render = false
|
paths.hemBase.render = false
|
||||||
paths.seam = paths.saBase
|
paths.seam = paths.saBase.join(paths.hemBase).close().attr('class', 'fabric')
|
||||||
.join(paths.hemBase)
|
|
||||||
.close()
|
|
||||||
.attr('class', 'fabric')
|
|
||||||
|
|
||||||
paths.rollLine = new Path()
|
paths.rollLine = new Path()
|
||||||
.move(points.rollLineStart)
|
.move(points.rollLineStart)
|
||||||
|
@ -237,10 +234,7 @@ export default function(part) {
|
||||||
.curve(points.button3Right, points.waistCp2, points.armhole)
|
.curve(points.button3Right, points.waistCp2, points.armhole)
|
||||||
.attr('class', 'canvas lashed')
|
.attr('class', 'canvas lashed')
|
||||||
|
|
||||||
paths.flb = new Path()
|
paths.flb = new Path().move(points.flbHem).line(points.flbTop).attr('class', 'lining lashed')
|
||||||
.move(points.flbHem)
|
|
||||||
.line(points.flbTop)
|
|
||||||
.attr('class', 'lining lashed')
|
|
||||||
|
|
||||||
paths.pocket = new Path().move(points.pocketTopLeft)
|
paths.pocket = new Path().move(points.pocketTopLeft)
|
||||||
if (options.pocketRadius > 0) {
|
if (options.pocketRadius > 0) {
|
||||||
|
@ -312,7 +306,7 @@ export default function(part) {
|
||||||
|
|
||||||
macro('sprinkle', {
|
macro('sprinkle', {
|
||||||
snippet: 'notch',
|
snippet: 'notch',
|
||||||
on: ['armholePitch', 'cfNeck', 'rollLineStart', 'waist', 'seat']
|
on: ['shoulder', 'cfNeck', 'rollLineStart', 'waist', 'seat']
|
||||||
})
|
})
|
||||||
|
|
||||||
points.logo = new Point(points.chestPocketTopRight.x, points.armhole.y)
|
points.logo = new Point(points.chestPocketTopRight.x, points.armhole.y)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export default function(part) {
|
export default function (part) {
|
||||||
let {
|
let {
|
||||||
paperless,
|
paperless,
|
||||||
sa,
|
sa,
|
||||||
|
@ -10,6 +10,7 @@ export default function(part) {
|
||||||
macro,
|
macro,
|
||||||
paths,
|
paths,
|
||||||
Path,
|
Path,
|
||||||
|
Snippet,
|
||||||
snippets
|
snippets
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
|
@ -59,9 +60,9 @@ export default function(part) {
|
||||||
macro('scalebox', { at: points.tsWristLeftHelperTop })
|
macro('scalebox', { at: points.tsWristLeftHelperTop })
|
||||||
delete snippets.logo
|
delete snippets.logo
|
||||||
|
|
||||||
if (sa) {
|
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
||||||
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
|
||||||
}
|
snippets.sleeveTop = new Snippet('notch', points.top)
|
||||||
|
|
||||||
if (paperless) {
|
if (paperless) {
|
||||||
macro('ld', {
|
macro('ld', {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export default function(part) {
|
export default function (part) {
|
||||||
let {
|
let {
|
||||||
paperless,
|
paperless,
|
||||||
sa,
|
sa,
|
||||||
|
@ -54,9 +54,7 @@ export default function(part) {
|
||||||
to: new Point(points.top.x, points.usLeftEdge.y)
|
to: new Point(points.top.x, points.usLeftEdge.y)
|
||||||
})
|
})
|
||||||
|
|
||||||
if (sa) {
|
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
||||||
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
|
||||||
}
|
|
||||||
|
|
||||||
if (paperless) {
|
if (paperless) {
|
||||||
macro('ld', {
|
macro('ld', {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue