[vtkusers] Need help for contouring an unstructured grid
Andreu, Jean-Philippe
jean-philippe.andreu at joanneum.at
Tue Jul 2 05:48:55 EDT 2002
Hi All,
I desperately try to get the isosurface of an unstructured grid.
I get an unstructured grid after performing a 3D Delaunay triangulation.
The unstructured grid contains something like 10000 cells (a mix of 3D, 2D
and 1D cells).
Unfortunately after executing the following code:
vtkContourFilter *iso = vtkContourFilter::New();
iso->SetInput(del->GetOutput()); // del is of type vtkDelaunay3D*
iso->SetValue(0,0.1);
iso->Update();
numCells = iso->GetOutput()->GetNumberOfCells();
numPts = iso->GetOutput()->GetNumberOfPoints();
...the vtkPolyData on output is empty (numCells remains desesperately at
zero)... :-(
Any idea about what I did wrong???
Jean-Philippe
More information about the vtkusers
mailing list