motion scripts and rhythm

discussing opensource design and graphics.

April 29, 2013 at 9:57am
Home

coil tutorial

..maybe not exactly a tutorial, but this way I trick myself into finishing it.

It’s time for another post. This one is about making a coil / spring and uses plenty math and mathutils (Euler and Vector.)

will result in this

The outer loop deals with setting the rotation angle with respect to the centre of the object, the inner loop deals with creating the vertices for that segment and then rotating them with the rotation angle.

part2:

running this will generate a vertex only coil, perhaps the make coil function isn’t very pretty.. i’ll address that in a bit.

part3

So it needs face indices… looks like this.

part4

perhaps for practice, stick this into an addon? Text Editor has templates for geometry creation which allow you to adjust geometry before adding to the scene.

permalink