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
27 #ifndef vtkMergePoints_h
28 #define vtkMergePoints_h
29 
30 #include "vtkCommonDataModelModule.h" // For export macro
31 #include "vtkPointLocator.h"
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
35 {
36 public:
37  static vtkMergePoints* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
47  vtkIdType IsInsertedPoint(const double x[3]) override;
48  vtkIdType IsInsertedPoint(double x, double y, double z) override
49  {
50  return this->vtkPointLocator::IsInsertedPoint(x, y, z);
51  }
53 
62  int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
63 
64 protected:
65  vtkMergePoints() = default;
66  ~vtkMergePoints() override = default;
67 
68 private:
69  vtkMergePoints(const vtkMergePoints&) = delete;
70  void operator=(const vtkMergePoints&) = delete;
71 };
72 
73 VTK_ABI_NAMESPACE_END
74 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
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
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
static vtkMergePoints * New()
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