[vtk-developers] vtkTransform

Ken Martin ken.martin at kitware.com
Wed Nov 14 11:09:31 EST 2001


I found some code in VTK Transform that looks like a bug in the
GetOrientation method. It looks like if the if statement were ever
ture it would try to access ortho[2][3] which is not correct. Any
ideas ?

  double ortho[3][3];

  for (i = 0; i < 3; i++)
    {
    ortho[0][i] = matrix[0][i];
    ortho[1][i] = matrix[1][i];
    ortho[2][i] = matrix[2][i];
    }
  if (vtkMath::Determinant3x3(ortho) < 0)
    {
    ortho[0][i] = -ortho[0][i];
    ortho[1][i] = -ortho[1][i];
    ortho[2][i] = -ortho[2][i];
    }

--------------------------
Ken Martin, PhD
Kitware Inc.
518 371-3971 x101
469 Clifton Corporate Pkwy.
Clifton Park, NY 12065




More information about the vtk-developers mailing list