<html>
<body>
Hi,<br>
I am trying to add an isosurface to a hierarchical dataset. I check for
the number of polygons before I write it out and it is always 0 (zero).
<br>
Below is the code snippet. Any help will be appreciated. <br>
Thanks,<br>
Sunil<br><br>
dataset is a vtkHierarchicalDataSet<br><br>
<i>      vtkHierarchicalDataSetAlgorithm* alg =
vtkHierarchicalDataSetAlgorithm::New();<br>
      alg->SetInput( 0, dataset );<br>
      vtkHierarchicalDataSetGeometryFilter*
filter1 = <br>
              
vtkHierarchicalDataSetGeometryFilter::New( );<br>
       filter1->SetInputConnection( 0,
alg->GetOutputPort(0) );<br>
      vtkContourFilter *contour =
vtkContourFilter::New();<br>
        
contour->SetInputConnection( 0, filter1->GetOutputPort(0) );<br>
         contour->SetValue( 0,
value );<br>
        
contour->UseScalarTreeOff();<br>
      vtkPolyDataNormals *normals =
vtkPolyDataNormals::New();<br>
        
normals->SetInputConnection( 0, contour->GetOutputPort(0) );<br>
      vtkHierarchicalDataSetGeometryFilter*
filter = <br>
              
vtkHierarchicalDataSetGeometryFilter::New( );<br>
        
filter->SetInputConnection( 0, contour->GetOutputPort(0) );<br>
      int numPolys =
filter->GetOutput()->GetNumberOfPolys();<br>
      std::cout <<
"     The number of polys is "<<
numPolys << std::endl;<br><br>
<br><br>
</i></body>
</html>