VTK  9.5.2
vtkPolyDataNormals.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
57
58#ifndef vtkPolyDataNormals_h
59#define vtkPolyDataNormals_h
60
61#include "vtkFiltersCoreModule.h" // For export macro
63
64VTK_ABI_NAMESPACE_BEGIN
65class vtkFloatArray;
66class vtkIdList;
67class vtkPolyData;
68
69class VTKFILTERSCORE_EXPORT vtkPolyDataNormals : public vtkPolyDataAlgorithm
70{
71public:
73 void PrintSelf(ostream& os, vtkIndent indent) override;
74
81
83
90 vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
91 vtkGetMacro(FeatureAngle, double);
93
95
102 vtkSetMacro(Splitting, vtkTypeBool);
103 vtkGetMacro(Splitting, vtkTypeBool);
104 vtkBooleanMacro(Splitting, vtkTypeBool);
106
108
115 vtkBooleanMacro(Consistency, vtkTypeBool);
117
119
136
138
147
149
158
160
170 vtkBooleanMacro(FlipNormals, vtkTypeBool);
172
174
185
187
195 vtkGetMacro(OutputPointsPrecision, int);
197
200 vtkPolyData* data, vtkFloatArray* cellNormals, double flipDirection = 1.0);
201
202protected:
204 ~vtkPolyDataNormals() override = default;
205
206 // Usual data generation method
208
218
219private:
220 vtkPolyDataNormals(const vtkPolyDataNormals&) = delete;
221 void operator=(const vtkPolyDataNormals&) = delete;
222};
223
224VTK_ABI_NAMESPACE_END
225#endif
dynamic, self-adjusting array of float
list of point or cell ids
Definition vtkIdList.h:24
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
static vtkSmartPointer< vtkFloatArray > GetPointNormals(vtkPolyData *data, vtkFloatArray *cellNormals, double flipDirection=1.0)
static vtkPolyDataNormals * New()
Construct with feature angle=30, splitting and consistency turned on, flipNormals turned off,...
~vtkPolyDataNormals() override=default
vtkTypeBool NonManifoldTraversal
vtkTypeBool ComputePointNormals
static vtkSmartPointer< vtkFloatArray > GetCellNormals(vtkPolyData *data)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:72
Hold a reference to a vtkObjectBase instance.
int vtkTypeBool
Definition vtkABI.h:64