vtk-m/docs/changelog/cast-and-call-variable-vec.md
Kenneth Moreland c802adcbeb Add support for CastAndCallVariableVecField in FilterField
The `FilterField` class provides convenience functions for subclasses to
determine the `ArrayHandle` type for scalar and vector fields. However, you
needed to know the specific size of vectors. For filters that support an
input field of any type, a new form, `CastAndCallVariableVecField` has been
added. This calls the underlying functor with an `ArrayHandleRecombineVec`
of the appropriate component type.

The `CastAndaCallVariableVecField` method also reduces the number of
instances created by having a float fallback for any component type that
does not satisfy the field types.
2023-05-22 10:14:59 -06:00

653 B

Added support for CastAndCallVariableVecField in FilterField

The FilterField class provides convenience functions for subclasses to determine the ArrayHandle type for scalar and vector fields. However, you needed to know the specific size of vectors. For filters that support an input field of any type, a new form, CastAndCallVariableVecField has been added. This calls the underlying functor with an ArrayHandleRecombineVec of the appropriate component type.

The CastAndaCallVariableVecField method also reduces the number of instances created by having a float fallback for any component type that does not satisfy the field types.