[vtkusers] DataSetSurfaceFilter supporting blanking with StructuredGrid
Dr. Helmut Schumacher
hel.schumacher at fz-juelich.de
Wed Sep 29 08:52:53 EDT 2010
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://www.vtk.org/pipermail/vtkusers/attachments/20100929/822a4d5c/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5713 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100929/822a4d5c/attachment.bin>
More information about the vtkusers
mailing list