1
0
Fork 0
freesewing/markdown/dev/howtos/code/storing-path-length/en.md
nikhil 0becd057b2 fix: Broken/misleading links to designs' source code
Some of these links were actually broken, since they expect to find designs under the `packages/` directory in the current `develop` branch. Other links were technically okay, since they link to old commits, but updating those links may still help to reduce confusion.

Also fix a reference to `packages/unice` in a `netlify.toml` file. (Untested, but I don't think this is an actual Netlify configuration.)
2022-08-21 12:31:23 -04:00

831 B

title for about
Storing the seam length to use in another part developers Shows how to store a seam length so you can true the seam of another part
See this example in our source code

Often when designing patterns, we need to true a seam which means to make sure that two parts that need to be joined together are the same distance.

The example below is from Aaron and stores the length of the armhole seam:

  // Store length of armhole and neck opening
  store.set(
    'frontArmholeLength',
    new Path()
      .move(points.armhole)
      .curve(points.armholeCp2, points.strapRightCp1, points.strapRight)
      .length()
  )