# File: spline_spin.py # Author: Petr Sorfa # Desc: Create a single spline in an ascending # twirl. import am # Import the A:M library import math # Import the math library am.begin() am.spline_begin() # Begin the new spline z = 0 for angle in range (50): r = (50 - angle) / 2.0 x = math.cos (angle)*r y = math.sin (angle)*r am.spline_add_point (x, y, z) # Add the point to the spline z += 0.4 am.spline_end() # Complete and create the spline am.end()