VTK-m  2.0
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>
15 #include <vtkm/filter/geometry_refinement/vtkm_filter_geometry_refinement_export.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace geometry_refinement
22 {
50 
51 class VTKM_FILTER_GEOMETRY_REFINEMENT_EXPORT VertexClustering : public vtkm::filter::Filter
52 {
53 public:
54  VTKM_CONT
55  void SetNumberOfDivisions(const vtkm::Id3& num) { this->NumberOfDivisions = num; }
56 
57  VTKM_CONT
58  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
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::geometry_refinement::VertexClustering::GetNumberOfDivisions
const VTKM_CONT vtkm::Id3 & GetNumberOfDivisions() const
Definition: VertexClustering.h:58
vtkm::cont::DataSet
Definition: DataSet.h:34
vtkm::filter::geometry_refinement::VertexClustering::SetNumberOfDivisions
VTKM_CONT void SetNumberOfDivisions(const vtkm::Id3 &num)
Definition: VertexClustering.h:55
vtkm::filter::Filter
base class for all filters.
Definition: Filter.h:218
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Vec< vtkm::Id, 3 >
vtkm::filter::geometry_refinement::VertexClustering
Reduce the number of triangles in a mesh.
Definition: VertexClustering.h:51
Filter.h