Bug in vtkThinPlateSplineTransform::InternalUpdate()
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The following code leads to crash: division by zero!
int nSize = 2; vtkPoints* pScr = vtkPoints::New(); pScr->SetNumberOfPoints(nSize);
pScr->SetPoint(0, 0.0, 0.0, 0.0); pScr->SetPoint(1, 5.0, 6.0, 0.0);
vtkPoints* pTrg = vtkPoints::New(); pTrg->SetNumberOfPoints(nSize);
pTrg->SetPoint(0, 0.0, 0.0, 0.0); pTrg->SetPoint(1, 0.0, 0.0, 0.0);
vtkThinPlateSplineTransform* pT = vtkThinPlateSplineTransform::New(); pT->Modified(); pT->SetSourceLandmarks(pScr); pT->SetTargetLandmarks(pTrg); pT->Update();
pT->Delete();