Go to the documentation of this file.
57 #ifndef vtkm_worklet_contourtree_find_leaves_h
58 #define vtkm_worklet_contourtree_find_leaves_h
75 WholeArrayIn updegree,
76 WholeArrayIn downdegree,
78 WholeArrayIn splitArc,
79 WholeArrayInOut superarc);
87 template <
typename InPortalFieldType,
typename OutPortalFieldType>
89 const InPortalFieldType& updegree,
90 const InPortalFieldType& downdegree,
91 const InPortalFieldType& joinArc,
92 const InPortalFieldType& splitArc,
93 const OutPortalFieldType& superarc)
const
99 if ((updegree.Get(superID) == 0) && (downdegree.Get(superID) == 1))
101 superarc.Set(superID, joinArc.Get(superID));
104 else if ((updegree.Get(superID) == 1) && (downdegree.Get(superID) == 0))
106 superarc.Set(superID, splitArc.Get(superID));
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC_CONT FindLeaves()
Definition: FindLeaves.h:85
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
_1 InputDomain
Definition: FindLeaves.h:81
A control signature tag for input fields.
Definition: WorkletMapField.h:49
void(_1, _2, _3, _4, _5, _6) ExecutionSignature
Definition: FindLeaves.h:80
#define NO_VERTEX_ASSIGNED
Definition: filter/scalar_topology/worklet/contourtree/Types.h:77
VTKM_EXEC void operator()(const vtkm::Id &superID, const InPortalFieldType &updegree, const InPortalFieldType &downdegree, const InPortalFieldType &joinArc, const InPortalFieldType &splitArc, const OutPortalFieldType &superarc) const
Definition: FindLeaves.h:88
void(FieldIn superID, WholeArrayIn updegree, WholeArrayIn downdegree, WholeArrayIn joinArc, WholeArrayIn splitArc, WholeArrayInOut superarc) ControlSignature
Definition: FindLeaves.h:79
Definition: FindLeaves.h:71
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38