[vtkusers] vtkActor::GetCenter() Problem
Wenlong Wang
scc.wwl at gmail.com
Sat Oct 29 15:04:04 EDT 2011
Dear all,
I'm running the example here
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData . There
are two spheres created from vtkSphereSource.
I create two arrays* double p1[3]* and *double p2[3]*. After the renderer
add these two actors, I applied vtkActor::GetCenter() to them. However, I
found the returned points are all (0, 0, 0). But they are obviously in
different position. So does that mean the returned value is the model
coordinates?
Many thanks in advance.
Best wishes
Wenlong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111029/a53df39a/attachment.htm>
More information about the vtkusers
mailing list