construction: Using shorthand and first back outline
This commit is contained in:
parent
dc8766724e
commit
95ea42916f
10 changed files with 104 additions and 91 deletions
27
packages/brian/src/back.js
Normal file
27
packages/brian/src/back.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
import F from 'freesewing'
|
||||
import base from './base';
|
||||
|
||||
var back =
|
||||
{
|
||||
draft: function(part, context, final = true)
|
||||
{
|
||||
let { measurements, options, points, paths, snippets } = F.utils.shorthand(part, context);
|
||||
|
||||
base.draft(part, context);
|
||||
|
||||
paths.seam = new F.path()
|
||||
.move(points.cbNeck)
|
||||
.line(points.cbHips)
|
||||
.line(points.hips)
|
||||
.line(points.armhole)
|
||||
.curve(points.armholeCp1, points.armholeCp2, points.armholeHollow)
|
||||
.curve(points.armholeHollowCp1, points.armholeHollowCp2, points.armholePitch)
|
||||
.curve(points.armholePitchCp1, points.armholePitchCp2, points.shoulder)
|
||||
.line(points.neck)
|
||||
.curve(points.neckCp1, points.cbNeck, points.cbNeck)
|
||||
.close()
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
export default back;
|
Loading…
Add table
Add a link
Reference in a new issue