Discussion:
[vtkusers] vtkUnstructuredGrid output from a vtkLinearToQuadraticCellsFilter
Florian Benedetti
2018-11-27 17:00:28 UTC
Permalink
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
Fcs
2018-11-28 12:00:17 UTC
Permalink
quadCells->GetOuput() ?

See:
https://www.vtk.org/doc/nightly/html/classvtkLinearToQuadraticCellsFilter-members.html



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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

Loading...