Go to the documentation of this file.
46 #ifndef vtk_m_filter_scalar_topology_worklet_branch_decomposition_hierarchical_volumetric_branch_decomposer_CollapseBranchesPointerDoublingWorklet_h
47 #define vtk_m_filter_scalar_topology_worklet_branch_decomposition_hierarchical_volumetric_branch_decomposer_CollapseBranchesPointerDoublingWorklet_h
56 namespace scalar_topology
58 namespace hierarchical_volumetric_branch_decomposer
74 template <
typename InOutFieldPortalType>
76 const InOutFieldPortalType& branchRootPortal)
const
78 vtkm::Id branchRootVal1 = branchRootPortal.Get(superarc);
79 vtkm::Id branchRootVal2 = branchRootPortal.Get(branchRootPortal.Get(superarc));
80 if (branchRootVal1 != branchRootVal2)
82 branchRootPortal.Set(superarc, branchRootVal2);
VTKM_EXEC_CONT CollapseBranchesPointerDoublingWorklet()
Default Constructor.
Definition: CollapseBranchesPointerDoublingWorklet.h:71
#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
_1 InputDomain
Definition: CollapseBranchesPointerDoublingWorklet.h:67
VTKM_EXEC void operator()(const vtkm::Id superarc, const InOutFieldPortalType &branchRootPortal) const
operator() of the workelt
Definition: CollapseBranchesPointerDoublingWorklet.h:75
void(WholeArrayInOut branchRoot) ControlSignature
Control signature for the worklet.
Definition: CollapseBranchesPointerDoublingWorklet.h:65
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
Definition: CollapseBranchesPointerDoublingWorklet.h:61
void(InputIndex, _1) ExecutionSignature
Definition: CollapseBranchesPointerDoublingWorklet.h:66
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38