<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 &lt;&lt; &quot;X min &quot; &lt;&lt;  *root-&gt;GetLastProp3D()-&gt;GetXRange() &lt;&lt; &quot; X max &quot; &lt;&lt; *(root-&gt;GetLastProp3D()-&gt;GetXRange()+1) &lt;&lt; &quot; Y min &quot; &lt;&lt; *(root-&gt;GetLastProp3D()-&gt;GetYRange()) &lt;&lt; &quot; Y max &quot; &lt;&lt; *(root-&gt;GetLastProp3D()-&gt;GetYRange()+1) &lt;&lt; std::endl;<br>

<br>  double *orientation = root-&gt;GetLastProp3D()-&gt;GetOrientation();<br><br>  //Send to the output the actual orientation of last Item in vtkAssembly<br>  std::cout &lt;&lt; &quot;Orientation &quot; &lt;&lt; *orientation &lt;&lt; &quot; &quot; &lt;&lt; *(orientation+1) &lt;&lt; &quot; &quot; &lt;&lt;  *(orientation+2) &lt;&lt; std::endl;<br>

<br>  //Change orientation of whole vtkAssembly structure<br>  Tree-&gt;SetOrientation(90,35,45);<br>  Tree-&gt;SetPosition(0,2,1);<br>  orientation = root-&gt;GetLastProp3D()-&gt;GetOrientation();<br>  <br>  //Send to the output the new coordinates of last Item in vtkAssembly<br>

  std::cout &lt;&lt; &quot;X min &quot; &lt;&lt;  *root-&gt;GetLastProp3D()-&gt;GetXRange() &lt;&lt; &quot; X max &quot; &lt;&lt; *(root-&gt;GetLastProp3D()-&gt;GetXRange()+1) &lt;&lt; &quot; Y min &quot; &lt;&lt; *(root-&gt;GetLastProp3D()-&gt;GetYRange()) &lt;&lt; &quot; Y max &quot; &lt;&lt; *(root-&gt;GetLastProp3D()-&gt;GetYRange()+1) &lt;&lt; std::endl;<br>

  //Send to the output  the new orientation of last Item in vtkAssembly<br>  std::cout &lt;&lt; &quot;Orientation &quot; &lt;&lt; *orientation &lt;&lt; &quot; &quot; &lt;&lt; *(orientation+1) &lt;&lt; &quot; &quot; &lt;&lt;  *(orientation+2) &lt;&lt; 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">&lt;<a href="mailto:kacper.pluta@gmail.com">kacper.pluta@gmail.com</a>&gt;</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>&quot;If you build your empire on money, it&#39;ll fall like a house of cards, if you build it on love, you&#39;ve built Taj Mahal!&quot; - Mark Hartmaier<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>&quot;If you build your empire on money, it&#39;ll fall like a house of cards, if you build it on love, you&#39;ve built Taj Mahal!&quot; - Mark Hartmaier<br><br>