# File: spline_attach.py # Author: Petr Sorfa # Desc: Create two 3 point splines and connect # the middle points together. import am am.begin() am.spline_begin("myspline0") # create the first 3 point spline am.spline_add_point(0.0, 0.0, 0.0) am.spline_add_point(0.0, 1.0, 0.0) am.spline_add_point(0.0, 2.0, 0.0) am.spline_end() am.spline_begin("myspline1") # create the second 3 point spline am.spline_add_point(1.0, 0.0, 0.0) am.spline_add_point(0.0, 0.0, 0.0) am.spline_add_point(-1.0, 0.0, 0.0) am.spline_end() # Attach the point at position 1 (the second point) of the # second spline to the point at position 1 (the second point) # of the first spline am.spline_attach_points ("myspline1", "myspline0", 1, 1) am.end()