MoI discussion forum
MoI discussion forum

Full Version: Knitting curve

From: bemfarmer
30 Oct 2024   [#1]
My grandmother used to knit entire sweaters and coats.

While researching helicoids, a couple of interesting links were encountered. Some preliminary comments follow, as little time has been available. Thought it might be fun to create a yarn loop.

Link #1:
https://www.researchgate.net/publication/340992626_Geometric_modeling_of_knitted_fabrics_using_helicoid_scaffolds

This link talks of using helicoids as scaffold for knitting yarn.
It uses an approximate "simpler" method, to establish a distance, and a more math intensive method with a solver. The math seems to get difficult...
*****
Link #2:
https://www.cs.cmu.edu/~kmcrane/Projects/Other/YarnCurve.pdf

This link has actual c++ (?)code, which looks like it could be converted into javascript. An online "translator" converted 4000 lines. (The author tends to include code in (his) projects.)
The curve itself is simple Trigonometry.
The math seems to be doable. It does have a modified Frenet frame, for wrapping fibers around the simple curve.
Maybe MoI can do this in some other way?

Links posted at the request of Mindset (IGNITER).

- Brian

I cannot devote much time to this subject, at the current time.
From: Frenchy Pilou (PILOU)
31 Oct 2024   [#2]
seems they have learned that!




From: Mindset (IGNITER)
31 Oct 2024   [#3] In reply to [#1]
Thank you, Brian

I definitely appreciate your many fine contributions.
I learn a lot from you, even if the math often eludes me.
Apparently you have a well tuned and powerful intellect.
Salute!
From: bemfarmer
29 Dec 2024   [#4]
Attached is NodeEditorPlus node assemblage, to create a row of Knit stitches. (or Purl stitches)

This is a draft.
The setting of Interpcurve is used in order to have horizontal endpoint tangents.

Parameters are:
Roundness controls the roundness of the loops. 1.5 units of length.
Heightness controls the height in Y. 4 units.
numPoints is the number of points used to create curve.
Cycles is the number of stitches in the row. 4 units is used here.
Knit/Purl switch is used to select one or the other type of stitch.
Depthness controls the depth of oscillations in Z. 1 unit.

A vertical circle of radius 0.8 units can be placed at the start point of the curve, and swept to form a tube.
The row of 4 stitches can be network arrayed to (e.g.4) rows.
The rows can be offset to 4.5 units, for a snug fit.
This could likely be done in NEPlus with:
Geometry Select > Start Points
Geometry Select > Curves
Circle (vertical) centered at start point, radius 0.8 units.
Sweep
Array Grid, Width 1, Height 4.5 units, Num Copies ...

- Brian

In order to knit a random pattern of Knit and Purl stitches, up to 8 unit cells are needed.
The current node program only contains 1 (or so) of the needed unit cells.
Note that looking at a Knit stitch from the reverse side of the fabric, IS a Purl stitch.
A fabric with only Knit stitches forms "Vee" patterns.
A fabric with only Purl stitches forms a pattern of rows of bumps, like a row of "Pearls".
Mixing Knit and Purl stitches in various ways, forms other sorts of stitch PATTERNS.

Attachments:
YarnKnit4Purl_Curve.nod