VTK  9.3.0
vtkMergePoints.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
18#ifndef vtkMergePoints_h
19#define vtkMergePoints_h
20
21#include "vtkCommonDataModelModule.h" // For export macro
22#include "vtkPointLocator.h"
23
24VTK_ABI_NAMESPACE_BEGIN
25class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33
38 vtkIdType IsInsertedPoint(const double x[3]) override;
39 vtkIdType IsInsertedPoint(double x, double y, double z) override
40 {
41 return this->vtkPointLocator::IsInsertedPoint(x, y, z);
42 }
44
53 int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
54
55protected:
56 vtkMergePoints() = default;
57 ~vtkMergePoints() override = default;
58
59private:
60 vtkMergePoints(const vtkMergePoints&) = delete;
61 void operator=(const vtkMergePoints&) = delete;
62};
63
64VTK_ABI_NAMESPACE_END
65#endif
a simple class to control print indentation
Definition vtkIndent.h:29
merge exactly coincident points
int InsertUniquePoint(const double x[3], vtkIdType &ptId) override
Determine whether point given by x[3] has been inserted into points list.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
~vtkMergePoints() override=default
static vtkMergePoints * New()
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
vtkIdType IsInsertedPoint(const double x[3]) override
Determine whether point given by x[3] has been inserted into points list.
vtkMergePoints()=default
quickly locate points in 3-space
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
int vtkIdType
Definition vtkType.h:315