[vtkusers] vtktransform with vtkpolydata

王君臣 wangjunchen at gmail.com
Mon May 24 09:06:23 EDT 2010

2010/5/24 pablo p del castillo <pablodecastillo at yahoo.es>

> Hello,
> How can i fix the origin in a vtkpolydata to apply a rotation with
> vtktransform?
> I did it with vtkActor, but then i need info about rotate points new
> position, and from actor i do not known how get it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~you can get  the actor usermatrix and  transform
the rotation center from the world frame to the actor frame. defaultly, the
usermatrix is an identity matrix. Note should be taken that usermatrix is
only change the camera of the scene, not the data itself.

> Thanks
> Pablo
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100524/081296d4/attachment.htm>

More information about the vtkusers mailing list