Go to the documentation of this file.
11 #ifndef vtk_m_worklet_TriangulateStructured_h
12 #define vtk_m_worklet_TriangulateStructured_h
47 template <
typename ConnectivityInVec,
typename ConnectivityOutVec>
49 ConnectivityOutVec& connectivityOut,
54 connectivityOut[0] = connectivityIn[StructuredTriangleIndices[visitIndex][0]];
55 connectivityOut[1] = connectivityIn[StructuredTriangleIndices[visitIndex][1]];
56 connectivityOut[2] = connectivityIn[StructuredTriangleIndices[visitIndex][2]];
65 template <
typename CellSetType>
74 dispatcher.Invoke(cellSet, vtkm::cont::make_ArrayHandleGroupVec<3>(connectivity));
89 #endif // vtk_m_worklet_TriangulateStructured_h
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
#define VTKM_STATIC_CONSTEXPR_ARRAY
Definition: ExportMacros.h:107
VTKM_EXEC void operator()(const ConnectivityInVec &connectivityIn, ConnectivityOutVec &connectivityOut, vtkm::IdComponent visitIndex) const
Definition: TriangulateStructured.h:48
void(PointIndices, _2, VisitIndex) ExecutionSignature
Definition: TriangulateStructured.h:41
Definition: CastAndCall.h:34
IncidentElementIndices PointIndices
Definition: WorkletMapTopology.h:269
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
Compute the triangulate cells for a uniform grid data set.
Definition: TriangulateStructured.h:62
Dispatcher for worklets that inherit from WorkletMapTopology.
Definition: DispatcherMapTopology.h:31
Base class for worklets that map from Points to Cells.
Definition: WorkletMapTopology.h:255
void ArrayCopy(const SourceArrayType &source, DestArrayType &destination)
Does a deep copy from one array to another array.
Definition: ArrayCopy.h:142
_1 InputDomain
Definition: TriangulateStructured.h:42
An array handle with a constant value.
Definition: ArrayHandleConstant.h:63
void(CellSetIn cellset, FieldOutCell connectivityOut) ControlSignature
Definition: TriangulateStructured.h:40
Definition: TriangulateStructured.h:37
VTKM_CONT void Fill(vtkm::Id numPoints, vtkm::UInt8 shapeId, vtkm::IdComponent numberOfPointsPerCell, const vtkm::cont::ArrayHandle< vtkm::Id, ConnectivityStorageTag > &connectivity)
Definition: CellSetSingleType.h:186
The ExecutionSignature tag to use to get the visit index.
Definition: VisitIndex.h:43
FieldOut FieldOutCell
Definition: WorkletMapTopology.h:263
vtkm::cont::CellSetSingleType Run(const CellSetType &cellSet, vtkm::cont::ArrayHandle< vtkm::IdComponent > &outCellsPerCell)
Definition: TriangulateStructured.h:66