[Insight-developers] bug in TriangleHelper

Arnaud Gelas arnaud_gelas at hms.harvard.edu
Sat Mar 7 11:22:02 EST 2009


Hi,

Thanks a lot for finding and solving this bug! I have just modified  
itkTriangleHelper on the cvs version.

Regards,
Arnaud

On Mar 7, 2009, at 5:48 AM, nadan zhu wrote:

> 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
> <ATT00001.txt>



More information about the Insight-developers mailing list