From d045b4e5e53daf45808a65f8811a1c6fbf7ecc98 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 21 Oct 2008 01:00:19 +0100 Subject: [PATCH] get rim twist right --- energy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/energy.c b/energy.c index 2f8a854..aa2dd47 100644 --- 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); } -- 2.30.2