vtkUnstructuredGrid output from a vtkLinearToQuadraticCellsFilter

Florian Benedetti <[email protected]>
Newsgroups gmane.comp.lib.vtk.user
Message-ID <[email protected]>
Hi folks,

I'm new to VTK (I'm using VTK8 C++ API). I have a vtkUnstructuredGrid 
dataset, consisting of linear triangle/tetrahedral cells, and I'm trying 
to convert it into a dataset of quadratic cells with a 
vtkLinearToQuadraticCellsFilter object.

It works fine on visualization. Now, I would like to get an 
vtkUnstructuredGrid dataset from filter but I didn't manage to do that 
since I didn't clearly understand the documentation. How I can get an 
output dataset from a filter ?

// Code example

...

vtkSmartPointer<vtkUnstructuredGrid> dataSet = 
vtkDataSet::SafeDownCast(input_file->GetOutput());

vtkSmartPointer<vtkLinearToQuadraticCellsFilter> quadCells = 
vtkSmartPointer<vtkLinearToQuadraticCellsFilter>::New();

quadCells->SetInputData(dataSet);

// How to recover an output dataset from filter

...

Thanks in advance for your help.

Regards,

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.