Misc vtkExtractSelection2 improvements
This includes several improvements to vtkExtractSelection2.
- Correctly handle composite input in RequesDataObject. Also simplies the code to easier to follow.
- Not create SelectionOperators during iteration over blocks, instead create them before the iteration begins. This is essential, otherwise all the acceleration structures created in vtkSelectionOperator::Initialize need to be recreated per block which defeats the objective of that method.
- Add support to extract blocks by block ids or AMR level/idx.
- When locating points in a cell, use
vtkDataSet::GetCellPoints
instead ofvtkDataSet::GetCell
as it is a less expensive call. - Make
NewSelectionOperator
virtual so it can be overridden by subclasses. Also, gave than method aNew
following VTK style. - Update TestExtractionExpression to correct set FieldType on all nodes. Not setting FieldType is now correctly dectected as an error.
Edited by Utkarsh Ayachit