VTK-m  2.2
SplitSharpEdges.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_SplitSharpEdges_h
12 #define vtk_m_filter_geometry_refinement_SplitSharpEdges_h
13 
14 #include <vtkm/filter/Filter.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace geometry_refinement
22 {
41 {
42 public:
51  VTKM_CONT void SetFeatureAngle(vtkm::FloatDefault value) { this->FeatureAngle = value; }
52 
54  VTKM_CONT vtkm::FloatDefault GetFeatureAngle() const { return this->FeatureAngle; }
55 
56 private:
57  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
58 
59  vtkm::FloatDefault FeatureAngle = 30.0;
60 };
61 } // namespace geometry_refinement
62 } // namespace filter
63 } // namespace vtkm
64 
65 #endif // vtk_m_filter_geometry_refinement_SplitSharpEdges_h
vtkm::filter::geometry_refinement::SplitSharpEdges::GetFeatureAngle
vtkm::FloatDefault GetFeatureAngle() const
Specify the feature angle threshold to split on.
Definition: SplitSharpEdges.h:54
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_EXPORT
#define VTKM_FILTER_GEOMETRY_REFINEMENT_EXPORT
Definition: vtkm_filter_geometry_refinement_export.h:44
vtkm::filter::geometry_refinement::SplitSharpEdges::SetFeatureAngle
void SetFeatureAngle(vtkm::FloatDefault value)
Specify the feature angle threshold to split on.
Definition: SplitSharpEdges.h:51
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::geometry_refinement::SplitSharpEdges
Split sharp polygon mesh edges with a large feature angle between the adjacent cells.
Definition: SplitSharpEdges.h:40
vtkm::FloatDefault
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:236
Filter.h