Skip to content

Instantly share code, notes, and snippets.

@blude
Last active February 2, 2020 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blude/d855f635d75c4d7223e5736021223b7b to your computer and use it in GitHub Desktop.
Save blude/d855f635d75c4d7223e5736021223b7b to your computer and use it in GitHub Desktop.
nested function test
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