[vtkusers] BlankOn/Off calls in vtk 4.4

Berk Geveci berk.geveci at kitware.com
Tue Mar 2 08:42:34 EST 2004


In the current implementation, assigning a blanking array automatically
enables blanking (this is what happens under the hood when you call
BlankPoint or BlankCell). I suggest the following:
1. Create a 1 component vtkUnsignedCharArray of length num(Points|Cells)
2. Initialize all tuples (0 blanked, 1 visible)
3. When you want blanking, use sg->Set(Point|Cell)VisibilityArray(array)
4. When you don't want blanking,
sg->Set(Point|Cell)VisibilityArray(NULL)

I will revisit the blanking support for structured grids and image data
(vtkUniformGrid) in the future and improve the functionality.

-Berk

On Mon, 2004-03-01 at 18:42, maguire wrote:
> Hello,
> 
> We have applications written under vtk 4.2 which use vtkStructuredGrid's 
> BlankingOn() and BlankingOff() calls.  After upgrading to vtk 4.4 these 
> calls no longer are available.
> 
> Looks like these calls were removed on the shift to 
> vtkStructuredVisibilityConstraint.  Any suggestions on how to reproduce 
> this functionality?
> 
> Thanks,
> Mike
> -------------
> 
> Michael Maguire
> Scientific Programmer, Computational Technologies
> Reaction Engineering International
> E-mail: maguire at reaction-eng.com
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list