VTK  9.3.1
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 
24 VTK_ABI_NAMESPACE_BEGIN
25 class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
26 {
27 public:
28  static vtkMergePoints* New();
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 
55 protected:
56  vtkMergePoints() = default;
57  ~vtkMergePoints() override = default;
58 
59 private:
60  vtkMergePoints(const vtkMergePoints&) = delete;
61  void operator=(const vtkMergePoints&) = delete;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type management and printing.
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
static vtkPointLocator * New()
Construct with automatic computation of divisions, averaging 25 points per bucket.
int InsertUniquePoint(const double x[3], vtkIdType &ptId) override
Determine whether point given by x[3] has been inserted into points list.
a simple class to control print indentation
Definition: vtkIndent.h:28
merge exactly coincident points