MantisBT - VTK
View Issue Details
0006237VTK(No Category)public2008-01-12 16:372016-08-12 09:54
Alexandru Paler 
Will Schroeder 
normalmajoralways
closedmoved 
 
 
0006237: vtkTransformInterpolator SetInterpolationType bug
When setting the interpolation type to INTERPOLATION_TYPE_LINEAR the vtkTransformInterpolator class is not interpolating anymore.

This problem is because in the InitializeInterpolation() method the number of components for PositionInterpolator and ScaleInterpolator is set before setting the interpolation type.

When constructed with the default interpolation type (INTERPOLATION_TYPE_LINEAR) this does not happen because when setting the interpolation type of the 3 interpolators (vtkTransformInterpolator: lines 330-333) it is not changed because of the verifications inside the set methods of the objects (example vtkTupleInterpolator: line 188).

When setting a different interpolation type the number of components to be interpolated is reset to 0. After setting the number of components the interpolation type does not change.
The solution is to move:
lines 325-326
this->PositionInterpolator->SetNumberOfComponents(3);
this->ScaleInterpolator->SetNumberOfComponents(3);

before line 346:
TransformListIterator iter = this->TransformList->begin();
No tags attached.
Issue History
2008-01-12 16:37Alexandru PalerNew Issue
2008-02-06 09:36Jeff BaumesStatusbacklog => tabled
2008-02-06 09:36Jeff BaumesAssigned To => Will Schroeder
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036941
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0036941)
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.