VTK-m  2.0
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 
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 {
36 class VTKM_FILTER_GEOMETRY_REFINEMENT_EXPORT SplitSharpEdges : public vtkm::filter::FilterField
37 {
38 public:
39  VTKM_CONT
40  void SetFeatureAngle(vtkm::FloatDefault value) { this->FeatureAngle = value; }
41 
42  VTKM_CONT
43  vtkm::FloatDefault GetFeatureAngle() const { return this->FeatureAngle; }
44 
45 private:
46  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
47 
48  vtkm::FloatDefault FeatureAngle = 30.0;
49 };
50 } // namespace geometry_refinement
51 } // namespace filter
52 } // namespace vtkm
53 
54 #endif // vtk_m_filter_geometry_refinement_SplitSharpEdges_h
vtkm::filter::geometry_refinement::SplitSharpEdges::SetFeatureAngle
VTKM_CONT void SetFeatureAngle(vtkm::FloatDefault value)
Definition: SplitSharpEdges.h:40
vtkm::filter::geometry_refinement::SplitSharpEdges::GetFeatureAngle
VTKM_CONT vtkm::FloatDefault GetFeatureAngle() const
Definition: SplitSharpEdges.h:43
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::DataSet
Definition: DataSet.h:34
FilterField.h
vtkm::filter::FilterField
Definition: FilterField.h:21
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::geometry_refinement::SplitSharpEdges
Split sharp manifold edges where the feature angle between the adjacent surfaces are larger than the ...
Definition: SplitSharpEdges.h:36
vtkm::FloatDefault
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:198