forked from StudioInfinity/dyna3
Correct mixed-up angles
The angle distortions at the second and third vertices in each triangle seem to have been mixed up in the previous commit. I've checked, for a few triangles, that the output of this commit is consistent with the law of sines.
This commit is contained in:
parent
a309870968
commit
de4c2ef482
2 changed files with 117 additions and 117 deletions
|
@ -44,7 +44,7 @@ if __name__ == '__main__':
|
|||
for t in triangles:
|
||||
print('Triangle {0}, {1}, {2}'.format(t[0], t[1], t[2]))
|
||||
edge_distortions = collections.deque(
|
||||
[distortions[(t[j], t[k])] for (j, k) in [(1, 2), (0, 2), (0, 1)]]
|
||||
[distortions[(t[j], t[k])] for (j, k) in [(1, 2), (0, 1), (0, 2)]]
|
||||
)
|
||||
for k in range(3):
|
||||
ang_distort = angle_distortion(edge_distortions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue