Skip to content

Instantly share code, notes, and snippets.

@sbaer
Created April 20, 2012 22:13
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 sbaer/2432281 to your computer and use it in GitHub Desktop.
Save sbaer/2432281 to your computer and use it in GitHub Desktop.
list-of-attractors
distance = []
vector = []
#### Check each attractor against all surface points
for pt in srfPT:
v = None
for att in attPT:
line_vector = att - pt
if not v or line_vector.Length < v.Length:
v = line_vector
if v:
vector.append(v)
distance.append(v.Length)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment