1
0
Fork 0
freesewing/designs/tristan/src/backoutside.mjs

40 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-10-19 15:24:06 +00:00
import { backPoints } from './backpoints.mjs'
export const backOutside = {
2023-10-27 04:43:09 +00:00
name: 'tristan.backOutside',
2023-10-19 15:24:06 +00:00
from: backPoints,
draft: ({ sa, Point, points, Path, paths, Snippet, snippets, options, macro, part }) => {
2023-10-22 18:58:54 +00:00
paths.cut = new Path()
.move(points.armhole)
.curve(points.armholeCutCp, points.strapOutsideCp, points.strapOutside)
// .hide()
2023-10-19 15:24:06 +00:00
paths.dart = new Path()
.move(points.shoulderDart)
.curve(points.shoulderDart, points.shoulderDartCpUp, points.dartTip)
.curve(points.shoulderDartCpDown, points.dartRightCp, points.dartBottomRight)
.hide()
paths.outsideSeam = new Path()
.move(points.dartBottomRight)
.line(points.waistSide)
.curve_(points.waistSideCp2, points.armhole)
2023-10-22 18:58:54 +00:00
// .curve(points.armholeCp2, points.armholePitchCp1, points.armholePitch)
// .curve_(points.armholePitchCp2, points.shoulder)
// .line(points.shoulderDart)
.join(paths.cut)
2023-10-19 15:24:06 +00:00
.join(paths.dart)
.close()
.attr('class', 'fabric')
2023-10-27 04:43:09 +00:00
console.log({
backSide: new Path()
.move(points.waistSide)
.curve_(points.waistSideCp2, points.armhole)
.length(),
})
2023-10-19 15:24:06 +00:00
return part
},
}