[vtkusers] vtkPolyData origin

Hal Canary hal at cs.unc.edu
Wed May 30 11:59:52 EDT 2012


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.

> And the centre of mass?

Again, you would need to loop through the points and average some value. 
  I don't know of any existing functions to do this.

-- 
Hal Canary



More information about the vtkusers mailing list