Hi,<br><br>I am trying to use myVtkActor->SetOrigin(origin) to set the origin so that any rotations I apply is done about this point. This is what I do to build the pipeline<br><br><br>void buildPipeline( )<br>{<br> m_actor->SetMapper( m_mapper );<br>
m_actor->SetOrigin( 100, 100, 100 );<br> m_defaultTrf->Scale(m_scale, m_scale, m_scale);<br> m_defaultTrf->PostMultiply();<br> m_defaultTrf->Concatenate( this->getTransform() );<br> /// I add some more things to the m_defaultTrf<br>
.<br> .<br> .<br> m_actor->SetUserTransform( m_defaultTrf );<br> }<br> std::cout << "\n\n\nOrigin = [" << m_actor->GetOrigin()[0] << ", " << m_actor->GetOrigin()[1] << ", " << m_actor->GetOrigin()[2] << "]\n\n\n";<br>
}<br><br>But when I apply the transform in the scene, it is not being about some other point entirely. I noticed that this is the same point when I remove the SetOrigin() line. But in the last line it gives me the origin as the one that I set a few line earlier. I am not able to figure out what is the mistake. Can anyone help me?<br>
<br>Thank you.<br>Anant.<br>