[vtkusers] double* GetPoint() doesnt return a pointer but value?

Dominik Szczerba domi at vision.ee.ethz.ch
Mon Oct 9 09:19:08 EDT 2006


Hi,
I call double* p = vtkPolyData::GetPoints()::GetPoint(id) and expect it 
to return a pointer to double but it clearly is a value. I.e. I modify 
the result but the only way to see my polydata modified is to call 
vtkPolyData::GetPoints()::SetPoint(). The docu says 'p' should be a 
pointer, but vtkDataArrayTemplate seems to be copying the values. What's up?
Thanks a lot,
Dominik
-- 
Dominik Szczerba, Ph.D.
Computer Vision Lab, ETH
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list