[vtkusers] vtk.vtkExodusIIReader: information in GetOutput()?

David Thompson dcthomp at sandia.gov
Mon Dec 6 20:43:22 EST 2010


> ... I tried the snippet your provided and got
>
> ============ *snip* ============
> Element Blocks
>  block_5
> ...
> ============ *snap* ============
>
> I guess that tells me I got one element block, and that'd be it. I
> guess Exodus is minimalistic in the sense that it contains exactly
> what was put into the file once, and even though there are egdes in
> the mesh naturally, they are not stored in the file.

True.

> Do you happen to know if it's possible to iterate over the edges
> and/or faces of a vtkUnstructuredGrid?

You can use vtkExtractEdges to get a vtkPolyData that contains all the  
edges of the input vtkUnstructuredGrid. Reading the source for its  
RequestData() method illustrates how to iterate over all the edges  
yourself if you don't want to use the filter.

	David





More information about the vtkusers mailing list