Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_augmented_active_graph_transfer_saddle_starts_update_edge_sorter_h
54 #define vtk_m_worklet_contourtree_augmented_active_graph_transfer_saddle_starts_update_edge_sorter_h
64 namespace contourtree_augmented
66 namespace active_graph_inc
75 WholeArrayIn activeEdges,
76 WholeArrayIn firstEdge,
77 WholeArrayIn newFirstEdge,
78 WholeArrayIn newOutDegree,
79 WholeArrayOut edgeSorter);
87 template <
typename InFieldPortalType,
typename OutFieldPortalType>
90 const InFieldPortalType& activeEdgesPortal,
91 const InFieldPortalType& firstEdgePortal,
92 const InFieldPortalType& newFirstEdgePortal,
93 const InFieldPortalType& newOutdegreePortal,
94 const OutFieldPortalType& edgeSorterPortal)
const
96 vtkm::Id activeEdgesIdx = firstEdgePortal.Get(vertexId);
97 vtkm::Id edgeSorterIndex = newFirstEdgePortal.Get(vertex);
100 for (
vtkm::Id edge = 0; edge < newOutdegreePortal.Get(vertex); ++edge)
103 edgeSorterPortal.Set(edgeSorterIndex++, activeEdgesPortal.Get(activeEdgesIdx++));
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC void operator()(const vtkm::Id &vertexId, const vtkm::Id vertex, const InFieldPortalType &activeEdgesPortal, const InFieldPortalType &firstEdgePortal, const InFieldPortalType &newFirstEdgePortal, const InFieldPortalType &newOutdegreePortal, const OutFieldPortalType &edgeSorterPortal) const
Definition: TransferSaddleStartsUpdateEdgeSorter.h:88
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
void ExecutionSignature(_1, InputIndex, _2, _3, _4, _5, _6)
Definition: TransferSaddleStartsUpdateEdgeSorter.h:80
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
A control signature tag for input fields.
Definition: WorkletMapField.h:49
void ControlSignature(FieldIn activeVertices, WholeArrayIn activeEdges, WholeArrayIn firstEdge, WholeArrayIn newFirstEdge, WholeArrayIn newOutDegree, WholeArrayOut edgeSorter)
Definition: TransferSaddleStartsUpdateEdgeSorter.h:74
Definition: TransferSaddleStartsUpdateEdgeSorter.h:71
_1 InputDomain
Definition: TransferSaddleStartsUpdateEdgeSorter.h:81
VTKM_EXEC_CONT TransferSaddleStartsUpdateEdgeSorter()
Definition: TransferSaddleStartsUpdateEdgeSorter.h:85
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38