4 #ifndef vtkGeometryRepresentationInternal_h 5 #define vtkGeometryRepresentationInternal_h 14 #if VTK_MODULE_ENABLE_VTK_vtkm 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();
95 #else // VTKM_ENABLE_TBB 117 int divs =
static_cast<int>(150 * factor) + 10;
130 #endif // VTKM_ENABLE_TBB vtkIdType GetNumberOfCells()
virtual void SetUseInputPoints(int)
void SetNumberOfDivisions(int div[3])
void ShallowCopy(vtkDataObject *src)
static DecimationFilterType * New()
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)