VTK  9.6.1
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
64
65VTK_ABI_NAMESPACE_BEGIN
66class vtkFloatArray;
67class vtkIdList;
68class vtkPolyData;
69
70class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkPolyDataNormals : public vtkPolyDataAlgorithm
71{
72public:
74 void PrintSelf(ostream& os, vtkIndent indent) override;
75
82
84
91 vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
92 vtkGetMacro(FeatureAngle, double);
94
96
103 vtkSetMacro(Splitting, vtkTypeBool);
104 vtkGetMacro(Splitting, vtkTypeBool);
105 vtkBooleanMacro(Splitting, vtkTypeBool);
107
109
116 vtkBooleanMacro(Consistency, vtkTypeBool);
118
120
137
139
148
150
159
161
171 vtkBooleanMacro(FlipNormals, vtkTypeBool);
173
175
186
188
196 vtkGetMacro(OutputPointsPrecision, int);
198
201 vtkPolyData* data, vtkFloatArray* cellNormals, double flipDirection = 1.0);
202
203protected:
205 ~vtkPolyDataNormals() override = default;
206
207 // Usual data generation method
209
219
220private:
221 vtkPolyDataNormals(const vtkPolyDataNormals&) = delete;
222 void operator=(const vtkPolyDataNormals&) = delete;
223};
224
225VTK_ABI_NAMESPACE_END
226#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
#define VTK_MARSHALAUTO
#define vtkPolyDataNormals