[vtkusers] vtk3.2beta bug

johnny carroll norris jnorris at csar.uiuc.edu
Sun Mar 4 15:07:41 EST 2001


Once upon a time, Will Schroeder wrote:
> At 05:16 PM 3/2/2001 -0600, John Norris wrote:
> >vtkUnstructuredGrid::ShallowCopy() fails to pass through the cell
> >information.
<snip>
> 
> Thanks John, I'll fix it.
> Will

Sorry everyone.  The problem was in my own code.  :^(  Some time ago I
derived a new class from vtkUnstructuredGrid called
vtkManifoldUnstructuredGrid.  It redefines GetCellNeighbors() so that it
returns after finding one neighbor (the method in vtkUnstructuredGrid keeps
looking for more).  This makes vtkGeometryFilter execute more quickly.
Anyway, I fell victim to a stupid cut-and-paste error.  My header file had

vtkTypeMacro(vtkManifoldUnstructuredGrid, vtkPointSet);

instead of

vtkTypeMacro(vtkManifoldUnstructuredGrid, vtkUnstructuredGrid);

so the SafeDownCast() in vtkUnstructuredGrid::ShallowCopy() was failing.

I must write a simple example before mailing the list.
I must write a simple example before mailing the list.
I must write a simple example before mailing the list.
.
.
.

Sorry again,
John
-- 
John Norris
Research Programmer
Center for Simulation of Advanced Rockets
http://www.uiuc.edu/ph/www/jnorris




More information about the vtkusers mailing list