[vtkusers] problem with vtkIterativeClosestPointTransform
N.E Mackenzie-Mackay
9nem at qlink.queensu.ca
Tue Mar 23 20:50:35 EST 2004
I am getting a "Can't execute with Null or empty target" error
Write now I am trying to use the vtkIterativeClosestPointTransform to
find the transformation between a set of 3d points and a 3d mesh. I
have read the mesh from file and put the points in by hand by making a
vtkFloatArray -> vtkPoints -> vtkPolyData.
I set up vtkIterativeClosestPointTransform as so:
vtkIterativeClosestPointTransform icp =
vtkIterativeClosestPointTransform::New();
icp->SetSource(points) // points represented as vtkPolyData
icp->SetTarget(reader->GetOutput); // where the reader is a
vtkPolyDataReader
Later in the code I try and use the transform:
vtkActor a
a->SetUserTransform(icp);
I think the problem lies in the fact that I am representing a set of
points with a vtkPolyData type. I tried to make the set of points into
a vtkPointSet but was not able to initialize it.
Does anyone have any suggestions ?
Thanks
Neilson
When I try and use vtkIterativeClosestPointTransform
More information about the vtkusers
mailing list