Go to the documentation of this file.
10 #ifndef vtkm_m_worklet_ExtractGeometry_h
11 #define vtkm_m_worklet_ExtractGeometry_h
39 WholeArrayIn coordinates,
40 ExecObject implicitFunction,
45 ExtractCellsByVOI(
bool extractInside,
bool extractBoundaryCells,
bool extractOnlyBoundaryCells)
52 template <
typename ConnectivityInVec,
typename InVecFieldPortalType,
typename ImplicitFunction>
54 const ConnectivityInVec& connectivityIn,
55 const InVecFieldPortalType& coordinates,
56 const ImplicitFunction&
function)
const
62 for (indx = 0; indx < numIndices; indx++)
74 bool passFlag =
false;
109 template <
typename CellSetType>
113 *this->Output = permCellSet;
119 template <
typename CellSetType>
132 template <
typename CellSetType,
typename ImplicitFunction>
135 const ImplicitFunction& implicitFunction,
137 bool extractBoundaryCells,
138 bool extractOnlyBoundaryCells)
143 ExtractCellsByVOI worklet(extractInside, extractBoundaryCells, extractOnlyBoundaryCells);
145 invoke(worklet, cellSet, coordinates, implicitFunction, passFlags);
163 #endif // vtkm_m_worklet_ExtractGeometry_h
VTKM_CONT vtkm::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:448
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
Definition: CastAndCall.h:38
IncidentElementCount PointCount
Definition: WorkletMapTopology.h:267
VTKM_CONT vtkm::cont::ArrayHandleCounting< CountingValueType > make_ArrayHandleCounting(CountingValueType start, CountingValueType step, vtkm::Id length)
A convenience function for creating an ArrayHandleCounting.
Definition: ArrayHandleCounting.h:151
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
A CellSet of an unknown type.
Definition: UnknownCellSet.h:48
IncidentElementIndices PointIndices
Definition: WorkletMapTopology.h:269
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
Definition: CoordinateSystem.h:25
Allows launching any worklet without a dispatcher.
Definition: Invoker.h:41
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
static VTKM_CONT void CopyIf(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, const vtkm::cont::ArrayHandle< U, CStencil > &stencil, vtkm::cont::ArrayHandle< T, COut > &output)
Definition: Algorithm.h:435
#define VTKM_CONT
Definition: ExportMacros.h:57
A short fixed-length array.
Definition: Types.h:767
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:198
FieldOut FieldOutCell
Definition: WorkletMapTopology.h:263