24 #if VTK_MODULE_ENABLE_VTK_vtkm 28 #if defined(VTKM_ENABLE_TBB) && VTK_MODULE_ENABLE_VTK_AcceleratorsVTKmFilters 31 #include "vtkmLevelOfDetail.h" 34 class DecimationFilterType :
public vtkmLevelOfDetail
49 int divs =
static_cast<int>(std::pow(2, 4. * factor + 6.));
56 this->Fallback->SetUseInputPoints(1);
57 this->Fallback->SetCopyCellData(1);
58 this->Fallback->SetUseInternalTriangles(0);
70 vtkErrorMacro(
"Expected polydata.");
82 const bool allSameType = ((numCells * (maxPolySize + 1)) == polys->
GetSize());
83 if (allSameType && maxPolySize == 3)
95 this->Fallback->SetInputData(input);
96 this->Fallback->Update();
106 #else // VTKM_ENABLE_TBB 128 int divs =
static_cast<int>(150 * factor) + 10;
142 #endif // VTKM_ENABLE_TBB 143 #endif // __VTK_WRAP__ vtkIdType GetNumberOfCells()
virtual void SetUseInputPoints(int)
void SetNumberOfDivisions(int div[3])
void ShallowCopy(vtkDataObject *src)
static DecimationFilterType * New()
#define vtkStandardNewMacro(thisClass)
virtual void SetCopyCellData(int)
static vtkPolyData * SafeDownCast(vtkObjectBase *o)
vtkCellArray * GetPolys()
virtual void SetUseInternalTriangles(int)
static vtkInformationDataObjectKey * DATA_OBJECT()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static T ClampValue(const T &value, const T &min, const T &max)
void SetLODFactor(double factor)