[vtkusers] Error in vtkAppendPolyData

Johnny C. Norris II jnorris at mcs.anl.gov
Fri Feb 25 11:24:02 EST 2005

Or maybe I'm just doing something wrong.

In my vis app, users can apply cutting planes to whatever they're 
visualizing.  If they're visualizing the surface, then I use 
vtkClipPolyData to clip the output of vtkDataSetSurfaceFilter, and 
combine that with the output of a vtkCutter to cap the hole in the surface.

Anyway, something doesn't work right if the initial data has cell data 
and 2D cells.  But vtkAppendPolyData doesn't process the cell data 
correctly.  I've appended a code example that demonstrates the problem 
(change the "#define CLIP" from 0 to 1 and recompile to see the error), 
as well as two images illustrating the error.  Notice how the colors are 
obviously incorrect in the clipped object.

I'm using the latest VTK from CVS, BTW.

Any help here would be greatly appreciated.

John Norris
Research Programmer
Center for Simulation of Advanced Rockets
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtktest.cpp
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050225/51ce1104/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.jpg
Type: image/jpeg
Size: 34054 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050225/51ce1104/attachment.jpg>

More information about the vtkusers mailing list