[vtkusers] vtkActor::GetCenter() Problem

Wenlong Wang scc.wwl at gmail.com
Sat Oct 29 15:05:12 EDT 2011


Sorry about my mistake, the problem happens at vtkActor::GetPosition().

Wenlong

2011/10/29 Wenlong Wang <scc.wwl at gmail.com>

> 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/bab95f81/attachment.htm>


More information about the vtkusers mailing list