[Paraview] transformation matrix

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Mar 29 08:57:40 EDT 2016


Not directly,  but here's a way to do it using internal API (aka the
API may change in future).

>>> from paraview.simple import *
>>> from paraview import servermanager
>>> t = servermanager.CreateProxy("transforms", "Transform")
>>> tp = servermanager._getPyProxy(t)
>>> tp.Matrix=[1,0,0, 10,0,1,0,10, 0, 0, 1, 10, 0 ,0, 0, 1]
>>> a = Transform()
>>> a.Transform = tp



On Tue, Mar 29, 2016 at 4:12 AM, David Larsson <david.larsson at sth.kth.se> wrote:
> Dear all,
>
>
> I want to apply a transformation matrix (4x4) to a 3d volume in the paraview
> gui. However, the "Transform" filter prompts me to provide translation,
> rotation, and scaling in a  3x3 fashion. Is there any way of providing a
> transformation matrix as input?
>
>
> Thanks in advance,
>
>
> /David
>
>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>


More information about the ParaView mailing list