VTK-m  2.2
VertexClustering.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 
11 #ifndef vtk_m_filter_geometry_refinement_VertexClustering_h
12 #define vtk_m_filter_geometry_refinement_VertexClustering_h
13 
14 #include <vtkm/filter/Filter.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace geometry_refinement
22 {
49 {
50 public:
55  VTKM_CONT void SetNumberOfDivisions(const vtkm::Id3& num) { this->NumberOfDivisions = num; }
56 
58  VTKM_CONT const vtkm::Id3& GetNumberOfDivisions() const { return this->NumberOfDivisions; }
59 
60 private:
61  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
62 
63  vtkm::Id3 NumberOfDivisions = { 256, 256, 256 };
64 };
65 } // namespace geometry_refinement
66 } // namespace filter
67 } // namespace vtkm
68 
69 #endif // vtk_m_filter_geometry_refinement_VertexClustering_h
vtkm_filter_geometry_refinement_export.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::filter::geometry_refinement::VertexClustering::GetNumberOfDivisions
const vtkm::Id3 & GetNumberOfDivisions() const
Specifies the dimensions of the uniform grid that establishes the bins used for clustering.
Definition: VertexClustering.h:58
VTKM_FILTER_GEOMETRY_REFINEMENT_EXPORT
#define VTKM_FILTER_GEOMETRY_REFINEMENT_EXPORT
Definition: vtkm_filter_geometry_refinement_export.h:44
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Vec< vtkm::Id, 3 >
vtkm::filter::geometry_refinement::VertexClustering::SetNumberOfDivisions
void SetNumberOfDivisions(const vtkm::Id3 &num)
Specifies the dimensions of the uniform grid that establishes the bins used for clustering.
Definition: VertexClustering.h:55
vtkm::filter::geometry_refinement::VertexClustering
Reduce the number of triangles in a mesh.
Definition: VertexClustering.h:48
Filter.h