<div dir="ltr"><div class="gmail_default" style="font-size:small">If you look at <a href="https://www.vtk.org/doc/nightly/html/classvtkActor.html">https://www.vtk.org/doc/nightly/html/classvtkActor.html</a> you will see that vtkActor  inherits from the abstract class vtkProp3d: <a href="https://www.vtk.org/doc/nightly/html/classvtkProp3D.html">https://www.vtk.org/doc/nightly/html/classvtkProp3D.html</a> so all the public member functions defined here are available. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This should get you going:</div><div class="gmail_default" style="font-size:small">//---------------------------------------------------------------</div><div class="gmail_default"><div class="gmail_default">#include <vtkActor.h></div><div class="gmail_default">#include <vtkMatrix4x4.h></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">  // Set up your actor</div><div class="gmail_default">  vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New();</div><div class="gmail_default">  // ...</div><div class="gmail_default"><br></div><div class="gmail_default">  // Here's how to set the orientation of the actor.</div><div class="gmail_default">  actor->RotateX(12);</div><div class="gmail_default">  actor->RotateY(2);</div><div class="gmail_default">  actor->RotateZ(-13);</div><div class="gmail_default">  // Here's how to get the rotation matrix etc.</div><div class="gmail_default">  vtkSmartPointer<vtkMatrix4x4> m = vtkSmartPointer<vtkMatrix4x4>::New();</div><div class="gmail_default">  actor->GetMatrix(m);</div><div class="gmail_default">  double * orient;</div><div class="gmail_default">  orient = actor->GetOrientationWXYZ();</div><div class="gmail_default" style="font-size:small">//---------------------------------------------------------------</div><div style="font-size:small"><br></div><div style="font-size:small">I'll add an example to VTK Examples <a href="https://lorensen.github.io/VTKExamples/site/">https://lorensen.github.io/VTKExamples/site/</a></div><div style="font-size:small"><br></div><div style="font-size:small">Andrew</div><div style="font-size:small"><br></div><div style="font-size:small"><br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---------- Forwarded message ----------<br>From: "Met@ll" <<a href="mailto:simakov.w@gmail.com">simakov.w@gmail.com</a>><br>To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Cc: <br>Bcc: <br>Date: Sat, 4 Nov 2017 04:35:18 -0700 (MST)<br>Subject:<div class="gmail_default" style="font-size:small;display:inline">​​</div> [vtkusers] Rotate the vector along the X, Y, Z axes.<br>Rotate the vector along the X, Y, Z axes.<br>
Hello.<br>
For what day I can not turn the actor on the axes X, Y, Z.<br>
There are angles, but it is not possible to calculate the rotation matrix?<br>
How can I do that? Someone faced such a problem?<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
<br>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div>