<span id="result_box" class="" lang="en"><span class="hps">I prepared</span> <span class="hps">a program(</span></span><span id="result_box" class="short_text" lang="en"><span class="hps">You can</span> <span class="hps">compile</span> <span class="hps">it right away</span><span class="">.)</span></span><span id="result_box" class="" lang="en"><span class="hps"></span> <span class="hps">that demonstrates</span> <span class="hps">my problem.</span> <span class="hps">Main</span> <span class="hps">part</span> <span class="hps">looks like</span><span class="">.<br>
<br><br>/*********Start of code describing the problem.***************************/<br>Â //Send to the output the actual coordinates of last Item in vtkAssembly<br>Â std::cout << "X min " <<Â *root->GetLastProp3D()->GetXRange() << " X max " << *(root->GetLastProp3D()->GetXRange()+1) << " Y min " << *(root->GetLastProp3D()->GetYRange()) << " Y max " << *(root->GetLastProp3D()->GetYRange()+1) << std::endl;<br>
<br>Â double *orientation = root->GetLastProp3D()->GetOrientation();<br><br>Â //Send to the output the actual orientation of last Item in vtkAssembly<br>Â std::cout << "Orientation " << *orientation << " " << *(orientation+1) << " " <<Â *(orientation+2) << std::endl;<br>
<br>Â //Change orientation of whole vtkAssembly structure<br>Â Tree->SetOrientation(90,35,45);<br>Â Tree->SetPosition(0,2,1);<br>Â orientation = root->GetLastProp3D()->GetOrientation();<br>Â <br>Â //Send to the output the new coordinates of last Item in vtkAssembly<br>
 std::cout << "X min " << *root->GetLastProp3D()->GetXRange() << " X max " << *(root->GetLastProp3D()->GetXRange()+1) << " Y min " << *(root->GetLastProp3D()->GetYRange()) << " Y max " << *(root->GetLastProp3D()->GetYRange()+1) << std::endl;<br>
 //Send to the output the new orientation of last Item in vtkAssembly<br> std::cout << "Orientation " << *orientation << " " << *(orientation+1) << " " << *(orientation+2) << std::endl;<br>
 //Why nothing has changed?<br> <br> /*********End of code describing the problem.***************************/<br><br><br></span></span><br><div class="gmail_quote">2011/8/24 Kacper Pluta <span dir="ltr"><<a href="mailto:kacper.pluta@gmail.com">kacper.pluta@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">When a rotate vtkAssembly parts of it have old coordinate value. How can force recalculate it?<br clear="all"><font color="#888888"><br>
-- <br>"If you build your empire on money, it'll fall like a house of cards, if you build it on love, you've built Taj Mahal!" - Mark Hartmaier<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>"If you build your empire on money, it'll fall like a house of cards, if you build it on love, you've built Taj Mahal!" - Mark Hartmaier<br><br>