[vtkusers] rotation of vtkActor through a matrix

Miguel Angel Rodriguez Florido marf at itccanarias.org
Fri Aug 14 10:59:01 EDT 2009


	Hi,

	Have you tried the vtkActor's methods SetUserTransform or SetUserMatrix?

	Hth.

Gomez Herrero, Alberto wrote:
> Hi all,
> 
> is there any way of applying a transformation to a vtkActor using a 4x4 matrix? The pokeMatrix() method does not work as I expected. If I do
> 
> actor->pokeMatrix(transformationMatrix)
> 
> and nothing else, the position is set to (0,0,0). If I do
> 
> actor->pokeMatrix(transformationMatrix)
> actor->SetPosition(position)
> 
> and then I print the matrix with
> 
> std::cout << *(actor->GetMatrix()) << std::endl;
> 
> then the 4th column of the matrix, which is supposed to be the position given with SetPosition, is not that.
> 
> If there is not any method for appliying a matrix, could anyone give me some light on how to pass from a matrix to angles around x, y and z so I can use the RotateX, RotateY and RotateZ methods?
> 
> Thank you very much,
> 
> Alberto
> 
> The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
> _______________________________________________
> 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

-- 
Miguel Angel Rodríguez Florido
Departamento de Ingeniería del Software
División de Investigación y Desarrollo Tecnológico
INSTITUTO TECNOLOGICO DE CANARIAS, S.A. - GOBIERNO DE CANARIAS
www.itccanarias.org t: +34 928 727548/457462, f: +34 928 727517

--------------------------------------------------------------------------
AVISO LEGAL:
Este mensaje y los ficheros adjuntos si los hubiere, se dirigen 
exclusivamente a su destinatario y puede contener información 
privilegiada o confidencial. La transmisión errónea del presente mensaje 
en ningún momento supone renuncia a su confidencialidad. Si no es vd. el 
destinatario indicado, queda notificado de que la utilización, 
divulgación y/o copia sin autorización está prohibida en virtud de la 
legislación vigente. Si ha recibido este mensaje por error, le rogamos 
que nos lo comunique inmediatamente por esta misma vía y proceda a su 
destrucción.

LEGAL WARNING:
This message and the files attached if there were any, are intended 
exclusively for its addressee and may contain information that is 
CONFIDENTIAL and protected by professional privilege. A wrong 
transmission to this message don't suppose we relinquished to It's 
confidential. If you are not the intended recipient you are hereby 
notified that any dissemination, copy or disclosure of this 
communication is strictly prohibited by law. If this message has been 
received in error, please immediately notify us via e-mail and delete it.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3262 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090814/5493c272/attachment.bin>


More information about the vtkusers mailing list