From 1d84bfb336685c47539b20e536a495f008ff9d2d Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 23 Feb 2008 08:24:42 +0000 Subject: [PATCH] fix calc of mid pt for tangent --- Graphics/Geom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Graphics/Geom.cpp b/Graphics/Geom.cpp index 12213e09d1..64fb031d41 100644 --- a/Graphics/Geom.cpp +++ b/Graphics/Geom.cpp @@ -1,4 +1,4 @@ -// $Id: Geom.cpp,v 1.153 2008-02-20 09:20:45 geuzaine Exp $ +// $Id: Geom.cpp,v 1.154 2008-02-23 08:24:42 geuzaine Exp $ // // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // @@ -168,7 +168,7 @@ class drawGEdge { } if(CTX.geom.lines_num) { - GPoint p = e->point(0.5 * (t_max - t_min)); + GPoint p = e->point(t_min + 0.5 * (t_max - t_min)); char Num[100]; sprintf(Num, "%d", e->tag()); double offset = (0.5 * CTX.geom.line_width + 0.3 * CTX.gl_fontsize) * @@ -180,7 +180,7 @@ class drawGEdge { } if(CTX.geom.tangents) { - double t = 0.5 * (t_max - t_min); + double t = t_min + 0.5 * (t_max - t_min); GPoint p = e->point(t); SVector3 der = e->firstDer(t); der.normalize(); -- GitLab