[vtkusers] vtkExtractEdges and vtkUnstructuredGrid

Martin Baumann mailsgetlost at web.de
Thu Aug 30 11:13:22 EDT 2007


I got the answer: It depends on the Cell-Types. For example a cell with
type VTK_LINE and VTK_POLY_LINE will not be representated by vtkExtractEdges
while VTK_POLYGON will have a representation.

Regards, M.B.



Martin Baumann schrieb:
> Hi,
>
> what must be contained in an vtkUnstructuredGrid so that vtkExtractEdges
> can extract the edges of cells?
> I use an vtkUnstructuredGrid that contains of points and cells, but
> vtkExtractEdges doesn't extract anything:
>
> extract_filter->GetOutput()->PrintSelf() returns
>  Number Of Points: 0
>  Number Of Cells: 0
> while there are
>  Number Of Points: 160
>  Number Of Cells: 54
> as I see using grid->PrintSelf().
>
> My pipeline looks like
>   vtkUnstructuredGrid* grid;
>   grid = read_inp(filename);  // a self-made reader
>   grid->PrintSelf(cout, 1);
>
>   vtkExtractEdges* edge_filter = vtkExtractEdges::New();
>   edge_filter->SetInput(grid);
>   edge_filter->Update();
>   edge_filter->GetOutput()->PrintSelf(cout,1);
>
> Any idea?
>
> Best regards, M.B.
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>   




More information about the vtkusers mailing list