[Insight-developers] bug in TriangleHelper

nadan zhu nadan.zhu at gmail.com
Sat Mar 7 05:48:57 EST 2009


Hi, every one

       Martine and i found a bug in file code/Review/itkTriangleHelper.h, in
which the member function
 TriangleHelper::ComputeAngle()
  The normalization of edges might be
   CoordRepType v21_l2 = v21.GetNorm();
   CoordRepType v23_l2 = v23.GetNorm();

instead of

//   CoordRepType v21_l2 = v21.GetSquaredNorm();
//    CoordRepType v23_l2 = v23.GetSquaredNorm();


Which will cause errors in some applications such as the computation of
gaussian curvature.


regards


wanlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20090307/9319c401/attachment.htm>


More information about the Insight-developers mailing list