53 #ifndef vtk_m_worklet_contourtree_augmented_active_graph_set_arcs_connect_nodes_h
54 #define vtk_m_worklet_contourtree_augmented_active_graph_set_arcs_connect_nodes_h
63 namespace contourtree_augmented
65 namespace active_graph_inc
73 WholeArrayInOut treeArcs,
76 WholeArrayIn treeSuperparents,
77 WholeArrayIn treeSuperarcs,
78 WholeArrayIn treeSupernodes);
87 template <
typename InFieldPortalType,
typename InOutFieldPortalType>
90 const InFieldPortalType& nodesPortal,
91 const InFieldPortalType& treeSuperparentsPortal,
92 const InFieldPortalType& treeSuperarcsPortal,
93 const InFieldPortalType& treeSupernodesPortal)
const
96 vtkm::Id nodeID = nodesPortal.Get(node);
98 vtkm::Id superparent = treeSuperparentsPortal.Get(nodeID);
101 vtkm::Id superarc = treeSuperarcsPortal.Get(superparent);
106 treeArcsPortal.Set(nodeID, treeSupernodesPortal.Get(treeSuperarcsPortal.Get(superparent)));
108 else if (superparent != treeSuperparentsPortal.Get(nodesPortal.Get(node - 1)))
110 vtkm::Id superarc = treeSuperarcsPortal.Get(superparent);
115 treeArcsPortal.Set(nodeID, treeSupernodesPortal.Get(treeSuperarcsPortal.Get(superparent)));
119 treeArcsPortal.Set(nodeID, nodesPortal.Get(node - 1));