[vtkusers] Obtaining transformation matrix for vtkPolyData
David E DeMarle
dave.demarle at kitware.com
Fri Aug 18 09:33:51 EDT 2017
Howdy Eric,
How are you doing the transform?
* vtkTransformFIlter?
* vtkActor::Transform?
* manually changing the points in the vtkPolyData object?
For either of the first two you can get the current matrix (and its
inverse) from the transform object.
hope that helps
David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Fri, Aug 18, 2017 at 8:11 AM, Eric Petersen <peer9802 at gmail.com> wrote:
> Hello,
>
> I currently have a Python script where I am successively translating, and
> rotating, a vtkPolyData object. The script currently does not track
> individual transforms but I would like to know the current 4x4 transform
> matrix. Is there any way to directly obtain this information from the
> vtkPolyData object or am I stuck rewriting the script to track individual
> transformations?
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170818/70cb1fff/attachment.html>
More information about the vtkusers
mailing list