fix(bruce): Added notches, closes #836
This commit is contained in:
parent
57bba92a36
commit
fa0e009035
4 changed files with 45 additions and 3 deletions
|
@ -105,6 +105,10 @@ export default function (part) {
|
|||
grainline: true
|
||||
})
|
||||
snippets.logo = new Snippet('logo', points.title.shift(90, 50))
|
||||
snippets.backNotch = new Snippet(
|
||||
'bnotch',
|
||||
points.sideRight.shiftFractionTowards(points.legRight, 0.5)
|
||||
)
|
||||
}
|
||||
|
||||
// Paperless?
|
||||
|
|
|
@ -33,7 +33,9 @@ export default function (part) {
|
|||
options,
|
||||
complete,
|
||||
paperless,
|
||||
macro
|
||||
macro,
|
||||
snippets,
|
||||
Snippet
|
||||
} = part.shorthand()
|
||||
|
||||
// Initialize
|
||||
|
@ -173,6 +175,13 @@ export default function (part) {
|
|||
from: points.dartJoin,
|
||||
to: points.topMid
|
||||
})
|
||||
snippets.sideNotch = new Snippet('notch', points.midRight)
|
||||
points.curveNotch = new Path()
|
||||
.move(points.midRight)
|
||||
.curve(points.curveRightCpTop, points.curveRightCpBottom, points.rightTuskRight)
|
||||
.shiftFractionAlong(0.5)
|
||||
snippets.curveNotch1 = new Snippet('notch', points.curveNotch)
|
||||
snippets.curveNotch2 = new Snippet('notch', points.curveNotch.flipX())
|
||||
}
|
||||
|
||||
// Paperless?
|
||||
|
|
|
@ -1,7 +1,19 @@
|
|||
import init from './init'
|
||||
|
||||
export default function (part) {
|
||||
let { store, sa, Point, points, Path, paths, complete, paperless, macro } = part.shorthand()
|
||||
let {
|
||||
store,
|
||||
sa,
|
||||
Point,
|
||||
points,
|
||||
Path,
|
||||
paths,
|
||||
complete,
|
||||
paperless,
|
||||
macro,
|
||||
Snippet,
|
||||
snippets
|
||||
} = part.shorthand()
|
||||
|
||||
// Initialize
|
||||
init(part)
|
||||
|
@ -56,6 +68,13 @@ export default function (part) {
|
|||
from: points.bottomLeft.shift(0, 15),
|
||||
to: points.topLeft.shift(0, 15)
|
||||
})
|
||||
snippets.notch = new Snippet(
|
||||
'notch',
|
||||
new Path()
|
||||
.move(points.tip)
|
||||
.curve(points.tipCpBottom, points.tipCpTop, points.topLeft)
|
||||
.shiftFractionAlong(0.5)
|
||||
)
|
||||
}
|
||||
|
||||
// Paperless?
|
||||
|
|
|
@ -11,7 +11,9 @@ export default function (part) {
|
|||
complete,
|
||||
paperless,
|
||||
macro,
|
||||
utils
|
||||
utils,
|
||||
snippets,
|
||||
Snippet
|
||||
} = part.shorthand()
|
||||
|
||||
// Initialize
|
||||
|
@ -77,6 +79,14 @@ export default function (part) {
|
|||
from: new Point(points.bottomRight.x / 2, points.bottomRight.y),
|
||||
to: new Point(points.bottomRight.x / 2, points.topRight.y)
|
||||
})
|
||||
snippets.frontNotch = new Snippet(
|
||||
'notch',
|
||||
points.topRight.shiftTowards(points.bottomRight, store.get('frontNotch'))
|
||||
)
|
||||
snippets.backNotch = new Snippet(
|
||||
'bnotch',
|
||||
points.topLeft.shiftFractionTowards(points.bottomLeft, 0.5)
|
||||
)
|
||||
}
|
||||
|
||||
// Paperless?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue