VTK  9.3.0
vtkCurvatures.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
59#ifndef vtkCurvatures_h
60#define vtkCurvatures_h
61
62#include "vtkFiltersGeneralModule.h" // For export macro
64
65#define VTK_CURVATURE_GAUSS 0
66#define VTK_CURVATURE_MEAN 1
67#define VTK_CURVATURE_MAXIMUM 2
68#define VTK_CURVATURE_MINIMUM 3
69
70VTK_ABI_NAMESPACE_BEGIN
71class VTKFILTERSGENERAL_EXPORT vtkCurvatures : public vtkPolyDataAlgorithm
72{
73public:
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
80 static vtkCurvatures* New();
81
83
90 vtkSetMacro(CurvatureType, int);
91 vtkGetMacro(CurvatureType, int);
92 void SetCurvatureTypeToGaussian() { this->SetCurvatureType(VTK_CURVATURE_GAUSS); }
93 void SetCurvatureTypeToMean() { this->SetCurvatureType(VTK_CURVATURE_MEAN); }
94 void SetCurvatureTypeToMaximum() { this->SetCurvatureType(VTK_CURVATURE_MAXIMUM); }
95 void SetCurvatureTypeToMinimum() { this->SetCurvatureType(VTK_CURVATURE_MINIMUM); }
97
99
103 vtkSetMacro(InvertMeanCurvature, vtkTypeBool);
104 vtkGetMacro(InvertMeanCurvature, vtkTypeBool);
105 vtkBooleanMacro(InvertMeanCurvature, vtkTypeBool);
107
108protected:
110
111 // Usual data generation method
113
118
119 void ComputeGaussCurvature(vtkCellArray* facets, vtkPolyData* output, double* gaussCurvatureData);
120
125
130
135
136 // Vars
139
140private:
141 vtkCurvatures(const vtkCurvatures&) = delete;
142 void operator=(const vtkCurvatures&) = delete;
143};
144
145VTK_ABI_NAMESPACE_END
146#endif
object to represent cell connectivity
compute curvatures (Gauss and mean) of a Polydata object
void SetCurvatureTypeToGaussian()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature"...
void SetCurvatureTypeToMaximum()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature"...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetMeanCurvature(vtkPolyData *output)
Discrete Mean curvature (H) computation.
static vtkCurvatures * New()
Construct with curvature type set to Gauss.
void SetCurvatureTypeToMinimum()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature"...
void SetCurvatureTypeToMean()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature"...
void GetGaussCurvature(vtkPolyData *output)
Discrete Gauss curvature (K) computation.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void GetMaximumCurvature(vtkPolyData *input, vtkPolyData *output)
Maximum principal curvature.
void ComputeGaussCurvature(vtkCellArray *facets, vtkPolyData *output, double *gaussCurvatureData)
void GetMinimumCurvature(vtkPolyData *input, vtkPolyData *output)
Minimum principal curvature.
vtkTypeBool InvertMeanCurvature
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_CURVATURE_MAXIMUM
#define VTK_CURVATURE_MINIMUM
#define VTK_CURVATURE_MEAN
#define VTK_CURVATURE_GAUSS