# File: p3d_paraboloid.py # Author: Petr Sorfa # Desc: A parametric surface import am # import the Animation Master extension import math # import the math extension am.begin() # Initialize the AM session am.surface_begin() for ui in range(20): u = ui*2.0*math.pi/19.0 row = [] for vi in range(10): v = vi*2.0/9.0 w = 1.0 x = w*v*math.sin(u) y = w*v*math.cos(u) z = w*v*v row += [x, y, z] am.surface_add(row) am.surface_end() am.end() # Finish the AM session