Contour filter Unstructured Grid

Hi, I am new in vtk, I was wondering if there is a way to apply filters in a 3D unstructured Grid. When I have tried it just generate an empty mesh. I have been only successful in uniform grids though.

I heard that exist this "vtkContour3DLinearGrid " that could work, but I haven’t found any example to understand how to apply it.
(Python user)

I appreciate any help or guidance.

Many thanks!

Please check out https://kitware.github.io/vtk-examples/site/.

Also, there are thousands of tests in VTK, search for vtkContour3DLinearGrid. For example, “grep -l vtkContour3DLinearGrid //Testing/Python/*.py” returns:

Filters/Core/Testing/Python/TestContour3DLinearGrid2.py
Filters/Core/Testing/Python/TestContour3DLinearGridCompositeInput.py
Filters/Core/Testing/Python/TestContour3DLinearGridInterpolateAttributes.py
Filters/Core/Testing/Python/TestContour3DLinearGrid.py
Filters/Core/Testing/Python/TestContour3DLinearGridScalarTree.py

1 Like