Parametric equation functions script

I’m a beginner in dynamo, how do I write:

{(u,v) | 0 <= u >= 2*PI , 0 <= v >= PI}

X = cos(u)
Y = sin (u)
Z = v

So that I can draw this cylinder’s geometry? Using codeblock or python script?

Thank you

Thank you.

The first question is how come if I write it in codeblock it doesn’t work?

Second I would like to draw it with a curve, the shape is a cylindrical spiral.

I’d like to apply the code template to other shapes, like in the circular shape.


1 Like

Also keep in mind that you have these two nodes directly OOTB:

1 Like