[vtkusers] vtkPolyData origin

Dominique Töpfer dominique at toepfer-web.de
Wed May 30 12:08:01 EDT 2012


On 30.05.2012 17:59, Hal Canary wrote:
> On 05/30/2012 11:53 AM, João Domingos wrote:
>> how can one get the origin and set the origin of a vtkPolyData?
>
> To change the origin, I think you have to loop through the point 
> coordinates and add a constant to each.
>
I think, you can also use vtkTransformPolyDataFilter  
(http://www.vtk.org/doc/nightly/html/classvtkTransformPolyDataFilter.html).

-- 
Dominique Töpfer, Dipl.-Inform.
Institute of Medical Physics
University of Erlangen




More information about the vtkusers mailing list