Skip to content

Commit

Permalink
fix(bella,docs): Add front waist dart curve option and allow longer w…
Browse files Browse the repository at this point in the history
…aist dart
  • Loading branch information
Benjamin Fan committed Sep 20, 2024
1 parent 6478df0 commit 4f712b5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion designs/bella/src/back.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const back = {
backDartHeight: { pct: 46, min: 38, max: 54, menu: 'darts' },
bustDartCurve: { pct: 100, min: 0, max: 100, menu: 'darts' },
bustDartLength: { pct: 90, min: 75, max: 100, menu: 'darts' },
waistDartLength: { pct: 90, min: 75, max: 95, menu: 'darts' },
waistDartCurve: { pct: 100, min: -100, max: 100, menu: 'darts' },
waistDartLength: { pct: 90, min: 75, max: 100, menu: 'darts' },
// Armhole
armholeDepth: { pct: 44, min: 38, max: 46, menu: 'armhole' },
backArmholeCurvature: { pct: 63, min: 50, max: 85, menu: 'armhole' },
Expand Down
13 changes: 13 additions & 0 deletions designs/bella/src/front-side-dart.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,19 @@ export const frontSideDart = {
90,
points.waistDartHem.dist(points.bust) / 2
)
// Apply option-controlled curvature to waist dart
points.waistDartLeftMid = new Path()
.move(points.bust)
.line(points.waistDartLeft)
.shiftFractionAlong(0.5)
points.waistDartRightMid = new Path()
.move(points.bust)
.line(points.waistDartRight)
.shiftFractionAlong(0.5)
const waistDartCpWidth =
points.waistDartLeftMid.dist(points.waistDartLeftCp) * options.waistDartCurve
points.waistDartLeftCp.x = points.waistDartLeftMid.x - waistDartCpWidth
points.waistDartRightCp.x = points.waistDartRightMid.x + waistDartCpWidth

paths.seam = new Path()
.move(points.cfHem)
Expand Down
10 changes: 10 additions & 0 deletions markdown/org/docs/designs/bella/options/waistdartcurve/en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "Waist dart curve"
---

***

<!-- ![The effect of the bust dart curve option on the pattern](sample.png) -->

The **waist dart curve** option controls the curvature of the waist dart.
From slightly concave, to straight, to slightly convex.

0 comments on commit 4f712b5

Please sign in to comment.