//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE. See the above copyright notice for more information. //============================================================================ #ifndef vtkm_m_filter_CellSetConnectivity_hxx #define vtkm_m_filter_CellSetConnectivity_hxx #include #include namespace vtkm { namespace filter { VTKM_CONT CellSetConnectivity::CellSetConnectivity() : OutputFieldName("component") { } template inline VTKM_CONT vtkm::cont::DataSet CellSetConnectivity::DoExecute( const vtkm::cont::DataSet& input, vtkm::filter::PolicyBase policy) { vtkm::cont::ArrayHandle component; vtkm::worklet::connectivity::CellSetConnectivity().Run( vtkm::filter::ApplyPolicyCellSet(input.GetCellSet(), policy, *this), component); return CreateResultFieldCell(input, component, this->GetOutputFieldName()); } } } #endif //vtkm_m_filter_CellSetConnectivity_hxx