Go to the documentation of this file.
73 #ifndef vtkm_worklet_contourtree_chain_doubler_h
74 #define vtkm_worklet_contourtree_chain_doubler_h
102 template <
typename InOutFieldPortalType>
105 vtkm::Id next = chains.Get(vertexID);
106 vtkm::Id doubleNext = chains.Get(next);
108 if (next != doubleNext)
109 chains.Set(vertexID, doubleNext);
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
void(_1, _2) ExecutionSignature
Definition: ChainDoubler.h:95
_1 InputDomain
Definition: ChainDoubler.h:96
void(FieldIn vertexID, WholeArrayInOut chains) ControlSignature
Definition: ChainDoubler.h:94
A control signature tag for input fields.
Definition: WorkletMapField.h:49
VTKM_EXEC_CONT ChainDoubler()
Definition: ChainDoubler.h:100
Definition: ChainDoubler.h:91
VTKM_EXEC void operator()(const vtkm::Id &vertexID, const InOutFieldPortalType &chains) const
Definition: ChainDoubler.h:103
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38