<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005>Howdy</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005>It seems to me that 
the following code should produce 3 cubes, the middle of which is 
invisible.&nbsp; However, I only can get the middle cube to go invisible if I 
uncomment the "anotherCube-&gt;VisibilityOff();" line.&nbsp; Shouldn't the 
vtkAssembly be able to make&nbsp;its children invisible, without having to 
explicitly call VisibilityOff on each individual child?&nbsp; Am I missing 
something here?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005>&lt;snip&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005>&nbsp;vtkAssembly* 
topAssem = vtkAssembly::New();</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005></SPAN></FONT><FONT 
face=Arial size=2><SPAN class=407385317-23082005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005>&nbsp;double i = 
0;<BR>&nbsp;for(i = 0; i &lt; 15; i+=5) {<BR>&nbsp;&nbsp;vtkAssembly* nextAssem 
= vtkAssembly::New();<BR>&nbsp;&nbsp;anotherCube = makeCubeActor();&nbsp; //this 
function makes a 1x1x1 
cube<BR>&nbsp;&nbsp;anotherCube-&gt;SetPosition(i,i,i);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;nextAssem-&gt;AddPart(anotherCube);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005>&nbsp;&nbsp;if(i == 
5) 
{<BR>&nbsp;&nbsp;&nbsp;nextAssem-&gt;VisibilityOff();<BR>&nbsp;&nbsp;&nbsp;//anotherCube-&gt;VisibilityOff(); 
//shouldn't need this line, in my opinion<BR>&nbsp;&nbsp;}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005>&nbsp;&nbsp;topAssem-&gt;AddPart(nextAssem);<BR>&nbsp;}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005>//add the Assembly 
to Renderer,&nbsp;the Renderer to a RenderWindow&nbsp;etc.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005>&lt;snap&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005>Mike 
Day</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005>Virtual Targets 
Center</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005><A 
href="https://modelexchange.army.mil/">https://modelexchange.army.mil/</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=407385317-23082005></SPAN></FONT>&nbsp;</DIV></BODY></HTML>