[vtkusers] ID problems after clipping data

Timo Frenzel rohlof at gmx.de
Sun Nov 7 12:41:07 EST 2004


Hi,

i've got Problems after clipping data (SetClipFunction(plane)) from a
PolyData volume with vtkClipPolyData.

I put the clipped data into a new PolyData structure and wanna build a
locator on it. But if the locator reads the polydata, it sometimes produces
an error ('vktcommon.dll memory access'-error while checking number of IDs).
This error occurs, if the clipped data does not contain a special part of
the volume. If i invert the clipped data, the error does not occur.
Probably there is a association with the clipped IDs and the error.

Did anyone noticed the same problem?

Here's my code for reconstuction:

vtkClipPolyData *clipper = vtkClipPolyData::New();
clipper -> SetInput(polydata); //polydata is a polydata volume with some
polys and cells
clipper -> SetClipFunction(plane);
clipper -> GenerateClippedOutputOn();
clipper -> SetValue(0.0);
clipper -> Update();

vtkPolyData *clipData = vtkPolyData::New();
clipData -> DeepCopy((vtkDataSet *)clipper ->GetClippedOutput());
clipData -> BuildLinks();
clipData -> Update();

vtkPointLocator *clipDataLoc = vtkPointLocator:New();
clipDataLoc -> SetDataSet(clipData);
clipDataLoc -> Update(); //while updating the data, the error occurs -
sometimes
clipDataLoc -> BuildLocator();

The error message: 'VTKVOMMOON.DLL: 0xC0000005: Access Violation'

Thx in advance, Timo Frenzel.





More information about the vtkusers mailing list