[vtkusers] vtkPointSet::GetPoint bug?
David Doria
daviddoria+vtk at gmail.com
Tue Aug 11 18:25:56 EDT 2009
One of the functions for getting a point from a PolyData (actually the
PointSet) doesn't seem to work (or I am doing something wrong)
This one works fine:
1) void GetPoint<http://www.vtk.org/doc/nightly/html/classvtkPointSet.html#ef4cdb2893d13d2b4b9c61a4848f1e50>(
vtkIdType<http://www.vtk.org/doc/nightly/html/vtkType_8h.html#20bd6b6dedfe1bbb096c50354d52cc7e>ptId,
double x[3])
double p0[3];
TriPoints->GetPoint(0, p0);
This one seems to give the same values for GetPoint(0), GetPoint(1),
GetPoint(2).
2) double * GetPoint<http://www.vtk.org/doc/nightly/html/classvtkPointSet.html#7b1f11e85608a0de638810dbea9749ab>(
vtkIdType<http://www.vtk.org/doc/nightly/html/vtkType_8h.html#20bd6b6dedfe1bbb096c50354d52cc7e>ptId)
double* p0;
p0 = TriPoints->GetPoint(0);
Here is a compilable example:
http://www.rpi.edu/~doriad/VTK_List/GetPoint/GetPointTest.cpp<http://www.rpi.edu/%7Edoriad/VTK_List/GetPoint/GetPointTest.cpp>
This seems like a pretty basic function, so maybe I am just calling it
wrong?
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090811/f0355215/attachment.htm>
More information about the vtkusers
mailing list