[vtkusers] vtkBandedPolyDataContourFilter and vtkStripper probelm ?

ckchen@CIS ckchen.cis89g at nctu.edu.tw
Sun May 1 09:30:06 EDT 2005


Hi~
I tried to use vtkBandedPolyDataContourFilter to create the contour surface,
however, I found there might be some problem in my program or in 
vtkBandedPolyDataContourFilter.cxx
when I combine vtkStripper and vtkBandedPolyDataContourFilter together.
It seems that the input data set of the vtkBandedPolyDataContourFilter can 
not have any triangle stripper.

Here is a fragment of my code:
*****************************************
vtkDataSet    *vds = vtkDataSet::New();
// .... read data in vds
vtkGeometryFilter *vgf = vtkGeometryFilter::New();
vtkTriangleFilter *vtf = vtkTriangleFilter::New();
vtkStripper *vs = vtkStripper::New();
vtkBandedPolyDataContourFilter *vbpdc = 
vtkBandedPolyDataContourFilter::New();

vgf->SetInput(vds->GetOutput());
vtf->SetInput(vgf->GetOutput());
vs->SetInput(vtf->GetOutput());
vbpdc->SetInput(vs->GetOutput());
vbpdc->GenerateValues(10, vds->GetScalarRange());
vbpdc->SetScalarModeToValue();
vbpdc->Update();   <---- run time error !!
*****************************************
Does anyone can tell me what's wrong in my program?
Thx~

Kavin. 





More information about the vtkusers mailing list