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