Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_augmented_active_graph_initialize_hyperarcs_from_active_indices_h
54 #define vtk_m_worklet_contourtree_augmented_active_graph_initialize_hyperarcs_from_active_indices_h
64 namespace contourtree_augmented
66 namespace active_graph_inc
75 WholeArrayIn activeIndices);
83 template <
typename InOutFieldPortalType,
typename InFieldPortalType>
86 const InFieldPortalType& activeIndicesPortal)
const
89 vtkm::Id joinID = hyperarcsPortal.Get(activeVertex);
90 vtkm::Id activeID = activeIndicesPortal.Get(joinID);
93 if (activeID == activeVertex)
97 hyperarcsPortal.Set(activeVertex, activeID);
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC_CONT InitializeHyperarcsFromActiveIndices()
Definition: InitializeHyperarcsFromActiveIndices.h:81
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
void ExecutionSignature(_1, InputIndex, _2)
Definition: InitializeHyperarcsFromActiveIndices.h:76
_1 InputDomain
Definition: InitializeHyperarcsFromActiveIndices.h:77
constexpr vtkm::Id TERMINAL_ELEMENT
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:74
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
void ControlSignature(WholeArrayInOut hyperarcs, WholeArrayIn activeIndices)
Definition: InitializeHyperarcsFromActiveIndices.h:74
VTKM_EXEC void operator()(const InOutFieldPortalType &hyperarcsPortal, const vtkm::Id activeVertex, const InFieldPortalType &activeIndicesPortal) const
Definition: InitializeHyperarcsFromActiveIndices.h:84
Definition: InitializeHyperarcsFromActiveIndices.h:71
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38