nested vtkAssembly visibility error
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I am using nested vtkAssembly's and am curious about the intended functionality of the Visibility. It's my understanding that if you have nested vtkAssembly's and you turn off the visibility of one of the vtkAssembly's somewhere in the heirarchy, that every vtkAssembly and prop that is a child of that vtkAssembly should not be visible. That, I have found, is not the functionality of the current cvs code (or at least the one I checked out a couple weeks ago). The functionality that I am seeing is that if you turn off the top vtkAssembly or the bottom viewProp, then the bottom viewProp becomes invisible. Turning off any intermediate vtkAssembly has no effect whatsoever on the bottom viewProp.
I have "fixed" this two different ways. The first was to add code to vtkAssembly::RenderOpaqueGeometry & vtkAssembly::RenderTranslucentGeometry to loop over all the nodes paths in order to check visibility.
The second way I tried for fixing this was to put a check for visibility in the vtkAssembly::BuildPaths so that it stop added props along a path as soon as one of the nodes was invisible. I wasn't sure if this impacted other code in a negative way, however.
I'm attach a cvs dif -u file that has both cvs dif call done separately but concatenated into one file.