chiark
/
gitweb
/
~ian
/
moebius2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c343db1
)
get rim twist right
author
Ian Jackson
<ian@davenant.greenend.org.uk>
Tue, 21 Oct 2008 00:00:19 +0000
(
01:00
+0100)
committer
Ian Jackson
<ian@davenant.greenend.org.uk>
Tue, 21 Oct 2008 00:00:19 +0000
(
01:00
+0100)
energy.c
patch
|
blob
|
history
diff --git
a/energy.c
b/energy.c
index 2f8a854cde076656b02c3c0799cc2fbdd5634cf1..aa2dd47fa4364eed4fc5c616ca2336ba9573eee9 100644
(file)
--- a/
energy.c
+++ b/
energy.c
@@
-516,7
+516,7
@@
void compute_rim_twist_angles(const Vertices vertices, int section) {
/* we are interested in the angle subtended at the rim, from the
* rim's point of view. */
K distance[k]= vertices[v][k] - oncircle[k];
- double distance_positive_z= distance[
3
];
+ double distance_positive_z= distance[
2
];
double distance_radial_outwards= dotprod(distance, oncircle);
rim_vertex_angles[v]= atan2(distance_positive_z, distance_radial_outwards);
}