Go to the documentation of this file.
73 #ifndef vtkm_worklet_contourtree_join_arc_connector_h
74 #define vtkm_worklet_contourtree_join_arc_connector_h
90 WholeArrayIn vertexSorter,
93 WholeArrayOut mergeArcs);
101 template <
typename InFieldPortalType,
typename OutFieldPortalType>
103 const InFieldPortalType& vertexSorter,
104 const InFieldPortalType& extrema,
105 const InFieldPortalType& saddles,
106 const OutFieldPortalType& mergeArcs)
const
109 bool joinToSaddle =
false;
117 (extrema.Get(vertexSorter.Get(vertex)) != extrema.Get(vertexSorter.Get(vertex - 1)));
122 mergeArcs.Set(vertexSorter.Get(vertex), saddles.Get(vertexSorter.Get(vertex)));
124 mergeArcs.Set(vertexSorter.Get(vertex), vertexSorter.Get(vertex - 1));
VTKM_EXEC_CONT JoinArcConnector()
Definition: JoinArcConnector.h:99
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
_1 InputDomain
Definition: JoinArcConnector.h:95
VTKM_EXEC void operator()(const vtkm::Id &vertex, const InFieldPortalType &vertexSorter, const InFieldPortalType &extrema, const InFieldPortalType &saddles, const OutFieldPortalType &mergeArcs) const
Definition: JoinArcConnector.h:102
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
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(FieldIn vertex, WholeArrayIn vertexSorter, WholeArrayIn extrema, WholeArrayIn saddles, WholeArrayOut mergeArcs) ControlSignature
Definition: JoinArcConnector.h:93
void(_1, _2, _3, _4, _5) ExecutionSignature
Definition: JoinArcConnector.h:94
Definition: JoinArcConnector.h:86
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38