74 #ifndef vtkPCANormalEstimation_h
75 #define vtkPCANormalEstimation_h
77 #include "vtkFiltersPointsModule.h"
82 VTK_ABI_NAMESPACE_BEGIN
106 } NeighborSearchMode;
123 vtkSetMacro(SearchMode,
int);
124 vtkGetMacro(SearchMode,
int);
137 vtkGetMacro(SampleSize,
int);
147 vtkSetMacro(Radius,
double);
148 vtkGetMacro(Radius,
double);
174 vtkSetMacro(NormalOrientation,
int);
175 vtkGetMacro(NormalOrientation,
int);
188 vtkSetVector3Macro(OrientationPoint,
double);
189 vtkGetVectorMacro(OrientationPoint,
double, 3);
196 vtkSetMacro(FlipNormals,
bool);
197 vtkGetMacro(FlipNormals,
bool);
198 vtkBooleanMacro(FlipNormals,
bool);
221 double OrientationPoint[3] = { 0. };
222 bool FlipNormals =
false;
237 VTK_ABI_NAMESPACE_END
abstract class to quickly locate points in 3-space
list of point or cell ids
a simple class to control print indentation
generate point normals using local tangent planes
void SetSearchModeToRadius()
Configure how the filter selects the neighbor points used to calculate the PCA.
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
~vtkPCANormalEstimation() override
void SetNormalOrientationToPoint()
Configure how the filter addresses consistency in normal oreientation.
void TraverseAndFlip(vtkPoints *inPts, float *normals, char *pointMap, vtkIdList *wave, vtkIdList *wave2)
void SetNormalOrientationToAsComputed()
Configure how the filter addresses consistency in normal oreientation.
vtkPCANormalEstimation()=default
void SetSearchModeToKNN()
Configure how the filter selects the neighbor points used to calculate the PCA.
static vtkPCANormalEstimation * New()
Standard methods for instantiating, obtaining type information, and printing information.
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 SetNormalOrientationToGraphTraversal()
Configure how the filter addresses consistency in normal oreientation.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
represent and manipulate 3D points
Superclass for algorithms that produce only polydata as output.
static vtkStaticPointLocator * New()
Construct with automatic computation of divisions, averaging 5 points per bucket.