Showing posts with label deisgn. Show all posts
Showing posts with label deisgn. Show all posts

Monday, December 20, 2010

Shapematron!

Right, exciting new knitty programming plan!
One of the harder things to do with a knitting pattern is find out what shape from first principles.
In my first Geometric Knitting colloquium I discussed the relationship between Riemannian metrics and the shape of knitting fabrics, and an algorithm which would take a metric and generate a knitting pattern to yield a surface with that metric. The plan this time is to work in the opposite direction -- to take a pattern and figure out the shape this makes.

The way I want to do this is to model the fabric as a network, each stitch representing a vertex, with connections between it and its neighbours. By modelling the forces acting between stitches it should be fairly easy to make an program which will iterate towards an equilibrium position, which would be the shape the knitting will naturally take. (This position won't be unique,
I think there are two main forces to take into account -- there's a spring-like force between neighbouring stitches, acting along the line between them. Then there's a twisting force acting perpendicular to the surface, which depends on the type of stitch, which makes stocking stitch fabric curl up, and allows ribbed fabric to scrunch together.

So that's the aim, to write a program which will take a knitting pattern, interpret this as a network of points, will work out the shape of the fabric, and display this shape. The last step may well be the hardest one, since I currently have no idea how to do 3D graphics, but I'm hoping this is a standard enough problem that I'll be able to find a good standard way to do that.

Exciting!
Hugh.

Wednesday, February 6, 2008

Maxwell cardigan


The Maxwell cardigan is now completed and has been passed to it's new home for baby-ifying. I've been pretty amazed at the response it's had around the maths department.
There were a couple of problems - the stranding wasn't quite as even as I would have liked, and particularly the last 'J' looked uneven to me. That might be just because I know where the mistakes are, so I'm tending to see them more. And it'll probably settle a bit once it's been washed a few times(particularly cos I didn't quite get round to blocking it properly).

The edges rolled rather more than I would like too, but I suspect this is more of a problem for trying to take good photos than it will be for actual wearing, when lying neatly isn't such an issue.
I'm a little concerned too that the yarn might not have been the best choice. I used RYC cashsoft, which feels amazing and I've been wanting to work with for a while, but I think from looking at the washing instructions that it might be a little delicate for use in baby clothes. So I'm hoping it wears well.


I wanted to say a little about the equations too(with assistance from Wikipedia):
The first is Gauss's law, and says that charge is the source of electric fields.
The second is Faraday's law. I'm not sure how you interpret that one really.
The third doesn't really have a name, but it says there are no magnetic monopoles. That is, there is no 'source' of magnetic fields like there are for electric fields.
The fourth is Ampere's law. The first term there, together with Faraday's law, imply that there are wave solutions to these equations- if I remember rightly, this was what first led Maxwell to suggest that light could be electromagnetic waves.
Some combination of the second and fourth one also explain the principle behind electricity generation - that you can create a current in a wire by passing it through a magnetic field.

So yes, they're pretty amazing. The cardigan itself is borrowed from Knitty's Devan design, which is nice, simple and elegant.
The baby in question is one of the Urminsky clan, so you can see more pictures over there, and hopefully we'll have some of Maxwell wearing the cardigan soon :o)

Hope y'all like it :o)
Hugh.