<!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> </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. However, I only can get the middle cube to go invisible if I
uncomment the "anotherCube->VisibilityOff();" line. Shouldn't the
vtkAssembly be able to make its children invisible, without having to
explicitly call VisibilityOff on each individual child? Am I missing
something here?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=407385317-23082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=407385317-23082005><snip></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=407385317-23082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005> 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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005> double i =
0;<BR> for(i = 0; i < 15; i+=5) {<BR> vtkAssembly* nextAssem
= vtkAssembly::New();<BR> anotherCube = makeCubeActor(); //this
function makes a 1x1x1
cube<BR> anotherCube->SetPosition(i,i,i);<BR> <BR> nextAssem->AddPart(anotherCube);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005> if(i ==
5)
{<BR> nextAssem->VisibilityOff();<BR> //anotherCube->VisibilityOff();
//shouldn't need this line, in my opinion<BR> }</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=407385317-23082005> topAssem->AddPart(nextAssem);<BR> }</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=407385317-23082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=407385317-23082005>//add the Assembly
to Renderer, the Renderer to a RenderWindow etc.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=407385317-23082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=407385317-23082005><snap></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=407385317-23082005></SPAN></FONT> </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> </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> </DIV></BODY></HTML>