I want to extract some points from a tetrahedral mesh and save the selection as a Polydata vtk file. I used Select Points Through and then Extract Selection. I try to save it as vtk file, but it can only be saved as Unstructured Grid vtk. How can I save it as Polydata vtk?
Thanks!
Welcome to the ParaView discourse and thanks for posting about your problem!
The “Extract Surface” filter will take you from a vtkUnstructuredGrid to a vtkPolyData keeping in mind that a vtkPolyData is necessarily a geometrical object with dimension inferior to 3.
May I ask why you need the extraction to be a vtkPolyData and not a vtkUnstructuredGrid?
If you are only interested in the points you can use the “Convert To Point Cloud” filter on the extracted vtkUnstructuredGrid to obtain a vtkPolyData containing only points.
Hi, I’d like to make the extracted points into a separate surface for a specific boundary condition in a CFD/FSI simulation. I think I should select cells instead of points. Thanks for the suggestion.
You might want to select the cells, perform an Extract Selection and then an Extract Surface to only get the outside surface of that selection as a vtkPolyData.