Go to the documentation of this file.
74 #ifndef vtkm_worklet_contourtree_trunk_builder_h
75 #define vtkm_worklet_contourtree_trunk_builder_h
92 WholeArrayIn chainExtremum,
93 WholeArrayOut prunesTo);
101 template <
typename InFieldPortalType,
typename OutFieldPortalType>
103 const InFieldPortalType& chainExtremum,
104 const OutFieldPortalType& prunesTo)
const
107 vtkm::Id chainExt = chainExtremum.Get(vertexID);
108 if (vertexID == chainExt)
111 prunesTo.Set(vertexID, chainExt);
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
void(FieldIn vertexID, WholeArrayIn chainExtremum, WholeArrayOut prunesTo) ControlSignature
Definition: TrunkBuilder.h:93
#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
VTKM_EXEC_CONT TrunkBuilder()
Definition: TrunkBuilder.h:99
#define NO_VERTEX_ASSIGNED
Definition: filter/scalar_topology/worklet/contourtree/Types.h:77
VTKM_EXEC void operator()(const vtkm::Id &vertexID, const InFieldPortalType &chainExtremum, const OutFieldPortalType &prunesTo) const
Definition: TrunkBuilder.h:102
_1 InputDomain
Definition: TrunkBuilder.h:95
void(_1, _2, _3) ExecutionSignature
Definition: TrunkBuilder.h:94
Definition: TrunkBuilder.h:88
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38