[vtk-developers] WG: DataSetSurfaceFilter supporting blanking with StructuredGrid

Dr. Helmut Schumacher hel.schumacher at fz-juelich.de
Wed Sep 29 09:14:45 EDT 2010



Dr. Helmut Schumacher
Forschungszentrum Jülich
Jülich Supercompting Centre
Leo-Brandt-Straße
52425 Jülich
Tel.: +49-2461/61-2482
Fax: +49-2461/61-6656


-----Ursprüngliche Nachricht-----
Von: Dr. Helmut Schumacher [mailto:hel.schumacher at fz-juelich.de] 
Gesendet: Mittwoch, 29. September 2010 14:53
An: VTK-Mailing-List (vtkusers at vtk.org)
Betreff: DataSetSurfaceFilter supporting blanking with StructuredGrid

Hello,

I found a very strange solution for my problem.

DataSetMapper uses DataSetSurfaceFilter.

In VTK 5.4.2 and 5.6.1 DataSetSurfaceFilter does NOT support blanking for a
StructuredGrid.
But the VTK-Version for ParaView has a method to handle this (for both Cell-
and PointBlanking).
Unfortunately the controlling "if"-statement selects this branch for
CellBlanking only.

So I copied the ParaView-Version of DataSetSurfaceFilter to my VTK/Graphics.
I changed line 161 of vtkDataSetSurfaceFilter.cxx from

if( grid->GetCellBlanking() )

to

if( grid->GetCellBlanking() || grid->GetPointBlanking() )

and compiled the changed VTK.

As the result I have a VTK with DataSetSurfaceFilter and therefore also
DataSetMapper supporting Cell- and PointBlanking.

I add my version to this mail and hope you will include it in the next
version of VTK.

Thanks in advance

Dr. Helmut Schumacher
Forschungszentrum Jülich
Jülich Supercompting Centre
Leo-Brandt-Straße
52425 Jülich
Tel.: +49-2461/61-2482
Fax: +49-2461/61-6656


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkDataSetSurfaceFilter.cxx
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100929/0c50039e/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5713 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100929/0c50039e/attachment-0001.bin>


More information about the vtk-developers mailing list