Go to the documentation of this file.
73 #ifndef vtkm_worklet_contourtree_regular_point_transferrer_h
74 #define vtkm_worklet_contourtree_regular_point_transferrer_h
96 WholeArrayIn chainExtremum,
98 WholeArrayIn valueIndex,
99 WholeArrayInOut prunesTo,
100 WholeArrayOut outdegree);
113 template <
typename InFieldPortalType,
114 typename InIndexPortalType,
115 typename InOutFieldPortalType,
116 typename OutFieldPortalType>
118 const InIndexPortalType& chainExtremum,
119 const InFieldPortalType& values,
120 const InIndexPortalType& valueIndex,
121 const InOutFieldPortalType& prunesTo,
122 const OutFieldPortalType& outdegree)
const
127 vtkm::Id saddleID = prunesTo.Get(vertexID);
134 saddleID = prunesTo.Get(chainExtremum.Get(vertexID));
136 if (lessThan(valueIndex.Get(saddleID), valueIndex.Get(vertexID), !
isJoinGraph))
139 prunesTo.Set(vertexID, chainExtremum.Get(vertexID));
141 outdegree.Set(vertexID, 0);
bool isJoinGraph
Definition: RegularPointTransferrer.h:104
#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
void(FieldIn vertexID, WholeArrayIn chainExtremum, WholeArrayIn values, WholeArrayIn valueIndex, WholeArrayInOut prunesTo, WholeArrayOut outdegree) ControlSignature
Definition: RegularPointTransferrer.h:100
void(_1, _2, _3, _4, _5, _6) ExecutionSignature
Definition: RegularPointTransferrer.h:101
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT RegularPointTransferrer(bool IsJoinGraph)
Definition: RegularPointTransferrer.h:108
A control signature tag for input fields.
Definition: WorkletMapField.h:49
#define NO_VERTEX_ASSIGNED
Definition: filter/scalar_topology/worklet/contourtree/Types.h:77
VTKM_EXEC void operator()(const vtkm::Id &vertexID, const InIndexPortalType &chainExtremum, const InFieldPortalType &values, const InIndexPortalType &valueIndex, const InOutFieldPortalType &prunesTo, const OutFieldPortalType &outdegree) const
Definition: RegularPointTransferrer.h:117
_1 InputDomain
Definition: RegularPointTransferrer.h:102
Definition: VertexValueComparator.h:83
Definition: RegularPointTransferrer.h:90
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38