VTK  9.3.20240328
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
47 #ifndef vtkMergePoints_h
48 #define vtkMergePoints_h
49 
50 #include "vtkCommonDataModelModule.h" // For export macro
51 #include "vtkPointLocator.h"
52 
53 VTK_ABI_NAMESPACE_BEGIN
54 class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
55 {
56 public:
57  static vtkMergePoints* New();
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
67  vtkIdType IsInsertedPoint(const double x[3]) override;
68  vtkIdType IsInsertedPoint(double x, double y, double z) override
69  {
70  return this->vtkPointLocator::IsInsertedPoint(x, y, z);
71  }
73 
82  int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
83 
84 protected:
85  vtkMergePoints() = default;
86  ~vtkMergePoints() override = default;
87 
88 private:
89  vtkMergePoints(const vtkMergePoints&) = delete;
90  void operator=(const vtkMergePoints&) = delete;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
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