[vtk-developers] vtkMatrix3x3 vs vtkMatrix4x4 creation

Sean McBride sean at rogue-research.com
Fri Sep 24 12:37:09 EDT 2010


Hi all,

Both vtkMatrix3x3.h and vtkMatrix4x4.h document their creation API like so:

  // Construct a 3x3 identity matrix.
  static vtkMatrix3x3 *New();

  // Construct a 4x4 identity matrix.
  static vtkMatrix4x4 *New();

But looking at the implementations, it seems that creating a 3x3 _does_
create an identity matrix, but creating a 4x4 does _not_.

It seems weird that two very similar clases diverge in this way.  Why is
this?  And what should be done?  I propose changing vtkMatrix4x4 to
conform to its documented behaviour.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada





More information about the vtk-developers mailing list