Go to the documentation of this file.
70 #ifndef vtkm_worklet_contourtree_saddle_ascent_transferrer_h
71 #define vtkm_worklet_contourtree_saddle_ascent_transferrer_h
89 WholeArrayIn activeEdges,
90 WholeArrayIn firstEdge,
91 WholeArrayOut edgeSorter);
99 template <
typename InFieldPortalType,
typename OutFieldPortalType>
103 const InFieldPortalType& activeEdges,
104 const InFieldPortalType& firstEdge,
105 const OutFieldPortalType& edgeSorter)
const
108 for (
vtkm::Id edge = 0; edge < newOutdegree; edge++)
111 vtkm::Id edgeSorterIndex = newFirstEdge + edge;
113 vtkm::Id edgeID = activeEdges.Get(firstEdge.Get(vertexID) + edge);
115 edgeSorter.Set(edgeSorterIndex, edgeID);
Definition: SaddleAscentTransferrer.h:83
#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: SaddleAscentTransferrer.h:93
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
void(_1, _2, _3, _4, _5, _6) ExecutionSignature
Definition: SaddleAscentTransferrer.h:92
VTKM_EXEC void operator()(const vtkm::Id &vertexID, const vtkm::Id &newOutdegree, const vtkm::Id &newFirstEdge, const InFieldPortalType &activeEdges, const InFieldPortalType &firstEdge, const OutFieldPortalType &edgeSorter) const
Definition: SaddleAscentTransferrer.h:100
A control signature tag for input fields.
Definition: WorkletMapField.h:49
VTKM_EXEC_CONT SaddleAscentTransferrer()
Definition: SaddleAscentTransferrer.h:97
void(FieldIn vertexID, FieldIn newOutdegree, FieldIn newFirstEdge, WholeArrayIn activeEdges, WholeArrayIn firstEdge, WholeArrayOut edgeSorter) ControlSignature
Definition: SaddleAscentTransferrer.h:91
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38