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