65 #ifndef vtkPCANormalEstimation_h
66 #define vtkPCANormalEstimation_h
69 #include "vtkFiltersPointsModule.h"
74 VTK_ABI_NAMESPACE_BEGIN
77 struct vtkOrientNormalsWorker;
116 vtkSetMacro(SearchMode,
int);
117 vtkGetMacro(SearchMode,
int);
130 vtkGetMacro(SampleSize,
int);
140 vtkSetMacro(Radius,
double);
141 vtkGetMacro(Radius,
double);
167 vtkSetMacro(NormalOrientation,
int);
168 vtkGetMacro(NormalOrientation,
int);
181 vtkSetVector3Macro(OrientationPoint,
double);
182 vtkGetVectorMacro(OrientationPoint,
double, 3);
189 vtkSetMacro(FlipNormals,
bool);
190 vtkGetMacro(FlipNormals,
bool);
191 vtkBooleanMacro(FlipNormals,
bool);
215 vtkSetMacro(CellGenerationMode,
int);
216 vtkGetMacro(CellGenerationMode,
int);
229 double OrientationPoint[3] = { 0. };
230 bool FlipNormals =
false;
234 template <
typename TPo
intsRange>
235 void TraverseAndFlip(
236 TPointsRange& inPts,
float* normals,
char* pointMap,
vtkIdList* wave,
vtkIdList* wave2);
246 friend struct vtkOrientNormalsWorker;
249 VTK_ABI_NAMESPACE_END
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void SetNormalOrientationToPoint()
Configure how the filter addresses consistency in normal oreientation.
static vtkPolyDataAlgorithm * New()
void SetNormalOrientationToGraphTraversal()
Configure how the filter addresses consistency in normal oreientation.
Superclass for algorithms that produce only polydata as output.
generate point normals using local tangent planes
void SetSearchModeToKNN()
Configure how the filter selects the neighbor points used to calculate the PCA.
a simple class to control print indentation
abstract class to quickly locate points in 3-space
list of point or cell ids
static vtkStaticPointLocator * New()
Construct with automatic computation of divisions, averaging 5 points per bucket. ...
void SetNormalOrientationToAsComputed()
Configure how the filter addresses consistency in normal oreientation.
Style
This enum is used to control how normals oriented is controlled.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetSearchModeToRadius()
Configure how the filter selects the neighbor points used to calculate the PCA.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.