2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Add seam allowance and/or hem allowance
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
Adding seam allowance is something that has to happen in every pattern.
|
|
|
|
We might also have a hem where we need to add more seam allowance, or hem allowance.
|
|
|
|
|
2022-12-22 17:24:59 -08:00
|
|
|
When doing this, it's best to split up your path into sections that share the same
|
2021-08-25 16:09:31 +02:00
|
|
|
seam allowance.
|
|
|
|
|
|
|
|
In the example below we have two such paths:
|
|
|
|
|
2022-02-20 14:44:38 +01:00
|
|
|
- `paths.saBase` is the path that will require regular seam allowance
|
|
|
|
- `paths.hemBase` is the path that will require more seam allowance, or hem allowance
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2024-04-12 20:06:01 +01:00
|
|
|
When creating them, we hide the new paths to avoid drawing the same path multiple times.
|
2021-08-25 16:09:31 +02:00
|
|
|
Then we string together our real path and our seam allowance based on them:
|
|
|
|
|
|
|
|
```js
|
|
|
|
paths.saBase = new Path()
|
|
|
|
.move(points.bottomRight)
|
|
|
|
.line(points.tip)
|
|
|
|
.curve(points.tipCpBottom, points.tipCpTop, points.topLeft)
|
|
|
|
.line(points.bottomLeft)
|
2024-04-12 20:06:01 +01:00
|
|
|
.hide()
|
2021-08-25 16:09:31 +02:00
|
|
|
paths.hemBase = new Path()
|
|
|
|
.move(points.bottomLeft)
|
|
|
|
.line(points.bottomRight)
|
2024-04-12 20:06:01 +01:00
|
|
|
.hide()
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
paths.seam = paths.saBase.join(paths.hemBase)
|
|
|
|
.close()
|
|
|
|
.attr('class', 'fabric')
|
|
|
|
|
|
|
|
if (complete) {
|
|
|
|
if (sa) {
|
|
|
|
paths.sa = paths.saBase.offset(sa)
|
|
|
|
.join(paths.hemBase.offset(sa * 2))
|
|
|
|
.close()
|
|
|
|
.attr('class', 'fabric sa')
|
|
|
|
}
|
|
|
|
// ...
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::tip
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
##### Use a multiple of `sa` for your hem allowance
|
|
|
|
|
|
|
|
Resist the temptation to use an absolute value for any seam allowance, including at the hem.
|
|
|
|
|
|
|
|
Always use a multiple of the `sa` value.
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|