Go to the documentation of this file.
74 #ifndef vtkm_worklet_contourtree_vertex_degree_updater_h
75 #define vtkm_worklet_contourtree_vertex_degree_updater_h
91 WholeArrayIn activeEdges,
93 WholeArrayIn firstEdge,
94 WholeArrayIn prunesTo,
95 WholeArrayIn outdegree,
96 WholeArrayInOut chainExtemum,
111 template <
typename InFieldPortalType,
typename OutFieldPortalType>
113 const InFieldPortalType& activeEdges,
114 const InFieldPortalType& edgeFar,
115 const InFieldPortalType& firstEdge,
116 const InFieldPortalType& prunesTo,
117 const InFieldPortalType& outdegree,
118 const OutFieldPortalType& chainExtremum)
const
123 vtkm::Id edgeFirst = firstEdge.Get(vertexID);
126 chainExtremum.Set(vertexID, vertexID);
129 for (
vtkm::Id edge = 0; edge < outdegree.Get(vertexID); edge++)
131 vtkm::Id edgeIndex = edgeFirst + edge;
132 vtkm::Id edgeID = activeEdges.Get(edgeIndex);
135 vtkm::Id highEnd = prunesTo.Get(chainExtremum.Get(edgeFar.Get(edgeID)));
138 if (highEnd == vertexID)
#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
A control signature tag for output fields.
Definition: WorkletMapField.h:60
VTKM_EXEC vtkm::Id operator()(const vtkm::Id &vertexID, const InFieldPortalType &activeEdges, const InFieldPortalType &edgeFar, const InFieldPortalType &firstEdge, const InFieldPortalType &prunesTo, const InFieldPortalType &outdegree, const OutFieldPortalType &chainExtremum) const
Definition: VertexDegreeUpdater.h:112
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT VertexDegreeUpdater()
Definition: VertexDegreeUpdater.h:109
A control signature tag for input fields.
Definition: WorkletMapField.h:49
_1 InputDomain
Definition: VertexDegreeUpdater.h:99
void(FieldIn vertexID, WholeArrayIn activeEdges, WholeArrayIn edgeFar, WholeArrayIn firstEdge, WholeArrayIn prunesTo, WholeArrayIn outdegree, WholeArrayInOut chainExtemum, FieldOut newOutdegree) ControlSignature
Definition: VertexDegreeUpdater.h:97
_8(_1, _2, _3, _4, _5, _6, _7) ExecutionSignature
Definition: VertexDegreeUpdater.h:98
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38
Definition: VertexDegreeUpdater.h:87