Last active
February 2, 2020 21:22
-
-
Save blude/d855f635d75c4d7223e5736021223b7b to your computer and use it in GitHub Desktop.
nested function test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
points_list = [] | |
def fora(x): | |
def dentro(y): | |
return x + y | |
return dentro | |
for i in range(points_list): | |
# break loop if this is the last item of the array | |
if i == len(points_list) - 1: | |
break | |
current_point = points_list[i] | |
next_point = points_list[i + 1] | |
new_z = fora(current_point.Z) | |
rg.Point3D(current_point.X, current_point.Y, new_z(current_point.Y)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment