VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkMergePoints.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMergePoints.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef __vtkMergePoints_h
30 #define __vtkMergePoints_h
31 
32 #include "vtkCommonDataModelModule.h" // For export macro
33 #include "vtkPointLocator.h"
34 
35 class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
36 {
37 public:
38  static vtkMergePoints *New();
39  vtkTypeMacro(vtkMergePoints,vtkPointLocator);
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
46  vtkIdType IsInsertedPoint(const double x[3]);
47  vtkIdType IsInsertedPoint(double x, double y, double z)
48  {return this->vtkPointLocator::IsInsertedPoint(x, y, z); };
50 
57  int InsertUniquePoint(const double x[3], vtkIdType &ptId);
58 
59 protected:
62 
63 private:
64  vtkMergePoints(const vtkMergePoints&); // Not implemented.
65  void operator=(const vtkMergePoints&); // Not implemented.
66 };
67 
68 #endif
69 
70 
merge exactly coincident points
vtkIdType IsInsertedPoint(double x, double y, double z)