Created
April 20, 2012 22:13
-
-
Save sbaer/2432281 to your computer and use it in GitHub Desktop.
list-of-attractors
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
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