Man Page for vtkMergePoints
Table of Contents

NAME

vtkMergePoints - merge exactly coincident points

SYNOPSIS


#include "/opt/vtk-c++/graphics/vtkMergePoints.h"

class VTK_EXPORT vtkMergePoints : public vtkPointLocator

vtkMergePoints() {};
static vtkMergePoints *New() {return new vtkMergePoints;};
const char *GetClassName() {return "vtkMergePoints";};
int *MergePoints();
int IsInsertedPoint(float x[3]);

DESCRIPTION

vtkMergePoints is a locator object to quickly locate points in 3D. The primary difference between vtkMergePoints and its superclass vtkLocator is that vtkMergePoints merges precisely coincident points and is therefore much faster.

SEE ALSO

vtkCleanPolyData

SUMMARY

int *MergePoints()
Merge points together if they are exactly coincident. Return a list that maps unmerged point ids into new point ids. User is responsible for freeing list (use delete []). Make sure you've provided a dataset before invoking this method.

int IsInsertedPoint(float x[3])
Determine whether point given by x[3] has been inserted into points list. Return id of previously inserted point if this is true, otherwise return -1.


Table of Contents