Plot3d had a bug in its handling of an end condition. The problem was
actually in plnxtvhi_draw and only happened when the view parameters
were just right. I discovered it by spinning plots around. You can see
what I changed in the CVS diff. It used to say
} else if (j >= n) {
su1 = u[n - 1];
sv1 = v[n - 1];
su2 = u[n];
sv2 = -1;
which got garbage past the end of the u vector. Now it says
} else if (j >= n) {
su1 = u[n - 1];
sv1 = v[n - 1];
su2 = u[n - 1];
sv2 = -1;
gb
|