From 41a0355002fda513dbf8d878b6793e1f21a20ef1 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Thu, 23 Feb 2012 14:37:22 +0000 Subject: [PATCH] triangle data removed --- src/energy.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/energy.c b/src/energy.c index e30295b..97e7315 100644 --- a/src/energy.c +++ b/src/energy.c @@ -89,9 +89,9 @@ xh+=tot*(j->data->x - data->x); yh+=tot*(j->data->y - data->y); zh+=tot*(j->data->z - data->z); - txn+=jt->data->xnorm; - tyn+=jt->data->ynorm; - tzn+=jt->data->znorm; + txn+=jt->xnorm; + tyn+=jt->ynorm; + tzn+=jt->znorm; } h=xh*xh+yh*yh+zh*zh; @@ -118,7 +118,9 @@ data->curvature=-sqrtl(h); } #endif -//TODO: MAJOR!!!! What is vtx->data->c?????????????? Here it is 0! +// What is vtx->data->c?????????????? Here it is 0! +// c is forced curvature energy for each vertex. Should be set to zero for +// norman circumstances. data->energy=0.5*s*(data->curvature/s-data->c)*(data->curvature/s-data->c); return TS_SUCCESS; -- Gitblit v1.9.3