define paths where the elastic will go
for use when drawing the markers in parts front2 and back2
This commit is contained in:
parent
35e35aeb8d
commit
523c1a2d36
2 changed files with 28 additions and 26 deletions
|
@ -170,30 +170,31 @@ export default function (part) {
|
|||
/* Store lengths for use in elastic */
|
||||
|
||||
if (options.backExposure >= 0) {
|
||||
store.set(
|
||||
'backLegOpeningLength',
|
||||
new Path()
|
||||
paths.backLegOpening = new Path()
|
||||
|
||||
|
||||
.move(points.backGussetRight)
|
||||
.curve(points.backGussetRightCp1, points.backLegOpeningRightCp1, points.backLegOpeningRight)
|
||||
.length()
|
||||
)
|
||||
.setRender(false)
|
||||
|
||||
} else {
|
||||
store.set(
|
||||
'backLegOpeningLength',
|
||||
new Path()
|
||||
paths.backLegOpening = new Path()
|
||||
|
||||
|
||||
.move(points.backGussetRight)
|
||||
.curve(points.backGussetRightCp1, points.backFlareRightCp2, points.backFlareRight)
|
||||
.curve(points.backFlareRightCp1, points.backLegOpeningRightCp1, points.backLegOpeningRight)
|
||||
)
|
||||
.setRender(false)
|
||||
}
|
||||
store.set('backLegOpeningLength',paths.backLegOpening.length())
|
||||
|
||||
store.set(
|
||||
'backWaistBandLength',
|
||||
new Path()
|
||||
paths.backWaistBand = new Path()
|
||||
|
||||
|
||||
.move(points.backWaistBandRight)
|
||||
.curve(points.backWaistBandRightCp1, points.backWaistBandLeftCp1, points.backWaistBandLeft)
|
||||
.length()
|
||||
)
|
||||
.setRender(false)
|
||||
store.set('backWaistBandLength',paths.backWaistBand.length())
|
||||
|
||||
// Complete?
|
||||
if (complete) {
|
||||
|
|
|
@ -128,25 +128,26 @@ export default function (part) {
|
|||
store.set('frontGussetMid', points.frontGussetMid)
|
||||
|
||||
/* Store lengths for use in elastic */
|
||||
|
||||
store.set(
|
||||
'frontLegOpeningLength',
|
||||
new Path()
|
||||
|
||||
paths.frontLegOpening = new Path()
|
||||
.move(points.frontGussetRight)
|
||||
.curve(
|
||||
points.frontGussetRightCp1,
|
||||
points.frontLegOpeningRightCp1,
|
||||
points.frontLegOpeningRight
|
||||
)
|
||||
.length()
|
||||
)
|
||||
store.set(
|
||||
'frontWaistBandLength',
|
||||
new Path()
|
||||
.setRender(false)
|
||||
store.set('frontLegOpeningLength',paths.frontLegOpening.length())
|
||||
|
||||
paths.frontWaistBand = new Path()
|
||||
.move(points.frontWaistBandRight)
|
||||
.curve(points.frontWaistBandRightCp1, points.frontWaistBandLeftCp1, points.frontWaistBandLeft)
|
||||
.length()
|
||||
)
|
||||
.curve(
|
||||
points.frontWaistBandRightCp1,
|
||||
points.frontWaistBandLeftCp1,
|
||||
points.frontWaistBandLeft
|
||||
)
|
||||
.setRender(false)
|
||||
store.set('frontWaistBandLength',paths.frontWaistBand.length())
|
||||
|
||||
// Complete?
|
||||
if (complete) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue