Viskores  1.0
VertexClustering.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 
19 #ifndef viskores_filter_geometry_refinement_VertexClustering_h
20 #define viskores_filter_geometry_refinement_VertexClustering_h
21 
22 #include <viskores/filter/Filter.h>
24 
25 namespace viskores
26 {
27 namespace filter
28 {
29 namespace geometry_refinement
30 {
56 class VISKORES_FILTER_GEOMETRY_REFINEMENT_EXPORT VertexClustering : public viskores::filter::Filter
57 {
58 public:
64  {
65  this->NumberOfDivisions = num;
66  }
67 
70  {
71  return this->NumberOfDivisions;
72  }
73 
74 private:
75  VISKORES_CONT viskores::cont::DataSet DoExecute(const viskores::cont::DataSet& input) override;
76 
77  viskores::Id3 NumberOfDivisions = { 256, 256, 256 };
78 };
79 } // namespace geometry_refinement
80 } // namespace filter
81 } // namespace viskores
82 
83 #endif // viskores_filter_geometry_refinement_VertexClustering_h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::Filter
Base class for all filters.
Definition: Filter.h:171
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores::filter::geometry_refinement::VertexClustering::SetNumberOfDivisions
void SetNumberOfDivisions(const viskores::Id3 &num)
Specifies the dimensions of the uniform grid that establishes the bins used for clustering.
Definition: VertexClustering.h:63
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::filter::geometry_refinement::VertexClustering
Reduce the number of triangles in a mesh.
Definition: VertexClustering.h:56
viskores_filter_geometry_refinement_export.h
viskores::Vec< viskores::Id, 3 >
viskores::filter::geometry_refinement::VertexClustering::GetNumberOfDivisions
const viskores::Id3 & GetNumberOfDivisions() const
Specifies the dimensions of the uniform grid that establishes the bins used for clustering.
Definition: VertexClustering.h:69
Filter.h