Go to the documentation of this file.
10 #ifndef vtk_m_worklet_AveragePointNeighborhood_h
11 #define vtk_m_worklet_AveragePointNeighborhood_h
40 template <
typename InputFieldPortalType>
45 using T =
typename InputFieldPortalType::ValueType;
58 sum = sum + inputField.
Get(i, j, k);
63 return static_cast<T
>(sum / size);
73 #endif // vtk_m_worklet_AveragePointNeighborhood_h
AveragePointNeighborhood(vtkm::IdComponent radius)
Definition: AveragePointNeighborhood.h:34
Provides a neighborhood's placement with respect to the mesh's boundary.
Definition: BoundaryState.h:31
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC vtkm::IdComponent3 MaxNeighborIndices(vtkm::IdComponent radius) const
Returns the minimum neighborhood indices that are within the bounds of the data.
Definition: BoundaryState.h:136
#define VTKM_ASSERT(condition)
Definition: Assert.h:43
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
A control signature tag for input connectivity.
Definition: WorkletNeighborhood.h:110
A control signature tag for output point fields.
Definition: WorkletNeighborhood.h:89
VTKM_EXEC ValueType Get(vtkm::IdComponent i, vtkm::IdComponent j, vtkm::IdComponent k) const
Definition: FieldNeighborhood.h:48
vtkm::IdComponent BoundaryRadius
Definition: AveragePointNeighborhood.h:67
_3(_2, Boundary) ExecutionSignature
Definition: AveragePointNeighborhood.h:31
Definition: AveragePointNeighborhood.h:25
_1 InputDomain
Definition: AveragePointNeighborhood.h:32
void(CellSetIn cellSet, FieldInNeighborhood inputField, FieldOut outputField) ControlSignature
Definition: AveragePointNeighborhood.h:30
The ExecutionSignature tag to query if the current iteration is inside the boundary.
Definition: WorkletNeighborhood.h:54
VTKM_EXEC vtkm::IdComponent3 MinNeighborIndices(vtkm::IdComponent radius) const
Returns the minimum neighborhood indices that are within the bounds of the data.
Definition: BoundaryState.h:114
A control signature tag for neighborhood input values.
Definition: WorkletNeighborhood.h:129
Definition: WorkletPointNeighborhood.h:27
Retrieves field values from a neighborhood.
Definition: FieldNeighborhood.h:36
VTKM_EXEC InputFieldPortalType::ValueType operator()(const vtkm::exec::FieldNeighborhood< InputFieldPortalType > &inputField, const vtkm::exec::BoundaryState &boundary) const
Definition: AveragePointNeighborhood.h:41