4 #ifndef vtkGeometryRepresentationInternal_h
5 #define vtkGeometryRepresentationInternal_h
14 #if VTK_MODULE_ENABLE_VTK_vtkm
15 #include "vtkmConfigFilters.h"
18 #if defined(VTKM_ENABLE_TBB) && VTK_MODULE_ENABLE_VTK_AcceleratorsVTKmFilters
21 #include "vtkmLevelOfDetail.h"
24 class DecimationFilterType :
public vtkmLevelOfDetail
39 int divs =
static_cast<int>(std::pow(2, 4. * factor + 6.));
46 this->Fallback->SetUseInputPoints(1);
47 this->Fallback->SetCopyCellData(1);
48 this->Fallback->SetUseInternalTriangles(0);
60 vtkErrorMacro(
"Expected polydata.");
72 const bool allSameType = ((numCells * (maxPolySize + 1)) == polys->
GetSize());
73 if (allSameType && maxPolySize == 3)
85 this->Fallback->SetInputData(input);
86 this->Fallback->Update();
96 #else // VTKM_ENABLE_TBB
118 int divs =
static_cast<int>(150 * factor) + 10;
132 #endif // VTKM_ENABLE_TBB