Extracted surface of Bipyramid has too many cells
In the documentation of vtkUnstructuredGridGeometryFilter it is stated that this filter provides the following functionality:
Geometry is obtained as follows: all 0D, 1D, and 2D cells are extracted. All 2D faces that are used by only one 3D cell (i.e., boundary faces) are extracted.
However, when I extract the surface of a simple vtkUnstructuredGrid modelling a Bipyramid using this filter, then the vtkUnstructuredGrid obtained as Output of this filter has 10 cells instead of 8 cells. This means that the base plate where the two pyramids are glued together is falsly regarded as surface cell and counted twice.
I have a Test test_extract_surface.cpp at my github repo where this behaviour is highlighted.
This test is run at the github workflow of my github repo, linking against the current VTK master. The output at this run explicitely shows that that the Surface has 10 instead of 8 cells.
Running test_extract_surface also produces two VTU files bipyramid.vtu and surface.vtu containing the vtkUnstructuredGrid produces in this Test. I provided them in this repository. You can open these files with Paraview in order to check that these UnstructuredGrids look just as expected.
Is this a bug or is the documentation for this Filter incorrect?
