MantisBT - VTK
View Issue Details
0006260VTK(No Category)public2008-01-21 06:502016-08-12 09:54
sebos69 
David Thompson (old) 
normalmajoralways
closedmoved 
 
 
0006260: [PATCH] vtkMeshQuality::TriangleMinAngle() repports wrong value
(this is a copy of a mail sent to vtk-users ML, but this mail had no answer)

Hi,

We found a bug in vtk 5.0.3, in the method
vtkMeshQuality::TriangleMinAngle().
the method computes the 3 triangle angles : alpha, beta and gamma, but the
last one is incorrectly computed. I think it computes PI-gamma instead of
gamma. This bug can sometimes result in a minimal angle greater than 60
degrees, which is impossible.

I saw that the class vtkMeshQuality has changed a lot in the current CVS,
but the following patch could come handy for an update of vtk 5.0.3:

RCS file: /cvsroot/VTK/VTK/Graphics/vtkMeshQuality.cxx,v
retrieving revision 1.31
diff -r1.31 vtkMeshQuality.cxx
670c670
< gamma = acos(vtkMath::Dot(a,b) / sqrt(a2 * b2));
---
> gamma = acos(-vtkMath::Dot(a,b) / sqrt(a2 * b2));
No tags attached.
Issue History
2008-01-21 06:50sebos69New Issue
2008-02-06 09:32Jeff BaumesStatusbacklog => tabled
2008-02-06 09:32Jeff BaumesAssigned To => David Thompson (old)
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036944
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0036944)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.