MantisBT - VTK
View Issue Details
0014457VTK(No Category)public2013-12-11 10:542014-10-06 14:08
David Doria 
Will Schroeder 
normalminorhave not tried
closedfixed 
6.0.0 
 
TBD
incorrect functionality
0014457: vtkExtractPolyDataGeometry returns all vertices instead of just the ones inside the implicit function
As reported by Tony Zhang on the mailing list, vtkExtractPolyDataGeometry returns all vertices instead of just the ones inside the implicit function (here is a demo of the problem: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Picking/HighlightSelection [^])

By changing

        vtkSmartPointer<vtkExtractPolyDataGeometry> extractPolyDataGeometry =
          vtkSmartPointer<vtkExtractPolyDataGeometry>::New();

to

        vtkSmartPointer<vtkExtractGeometry> extractPolyDataGeometry =
          vtkSmartPointer<vtkExtractGeometry>::New();

and

#include <vtkExtractPolyDataGeometry.h>

to

#include <vtkExtractGeometry.h>

the program works as expected. As far as I understand, vtkExtractPolyDataGeometry should operate exactly as vtkExtractGeometry, but just be more efficient for vtkPolyData.
No tags attached.
Issue History
2013-12-11 10:54David DoriaNew Issue
2013-12-11 15:41David DoriaNote Added: 0031923
2014-01-01 16:53Will SchroederNote Added: 0032105
2014-01-01 16:53Will SchroederAssigned To => Will Schroeder
2014-01-01 16:53Will SchroederStatusbacklog => active development
2014-01-08 06:34Will SchroederNote Added: 0032149
2014-01-08 06:34Will SchroederStatusactive development => gerrit review
2014-10-06 14:08Will SchroederStatusgerrit review => closed
2014-10-06 14:08Will SchroederResolutionopen => fixed

Notes
(0031923)
David Doria   
2013-12-11 15:41   
The confusion was that vtkExtractPolyDataGeometry copies all points to the output, while vtkExtractGeometry only copies the points that compose the cells that were selected. Should these behaviors be made consistent?
(0032105)
Will Schroeder   
2014-01-01 16:53   
The points were passed through for performance reasons (to avoid copying and mapping). However I'll modify the filter to behave as vtkExtractGeometry with the option to pass the points through.
(0032149)
Will Schroeder   
2014-01-08 06:34   
Needs new regression test image. Workin with Dave to refine this process.