|
VTK
9.6.20260216
|
Functor class used to topologically merge (nearly) coincident points. More...
#include <vtkVoronoiCore2D.h>
Public Member Functions | |
| TopologicalMerge (vtkVoronoiCore2D< TCompositor, TClassifier > *vc) | |
| vtkIdType | GetNumberOfMergedPoints () |
| Methods related to merging coincident points. | |
| void | Initialize () |
| void | operator() (vtkIdType threadId, vtkIdType endThreadId) |
| void | Reduce () |
Static Public Member Functions | |
| static std::unique_ptr< TopologicalMerge > | Execute (vtkVoronoiCore2D< TCompositor, TClassifier > *vc) |
Public Attributes | |
| vtkVoronoiCore2D< TCompositor, TClassifier > * | VC |
| vtkMergeTuples2DType | MergeTuples |
| vtkMergeMapType | MergeMap |
| vtkIdType | NumMergedPts |
Functor class used to topologically merge (nearly) coincident points.
It basically sorts topological coordinates, and then assigns a global point id to each run (of identical topological coordinates). The resulting merge map can then be used to generate merged point ids when producing global output. The class depends on the compositor type, which provides the topological coordinates and information about the number of points produced by each tile; and merge tuples, which is the global array that maps tile points into merged global points. On output, this class produces the total number of merged points, and a merge map that maps the tile points into final point ids.
Definition at line 428 of file vtkVoronoiCore2D.h.
| vtkVoronoiCore2D< TCompositor, TClassifier >::TopologicalMerge::TopologicalMerge | ( | vtkVoronoiCore2D< TCompositor, TClassifier > * | vc | ) |
|
inline |
Methods related to merging coincident points.
The number of merged points is the number of remaining points after merging (ie., after removing duplicates). The MergeMap maps the tile point ids (which contain duplicates) to global point ids (no duplicates).
Definition at line 443 of file vtkVoronoiCore2D.h.
|
inline |
Definition at line 446 of file vtkVoronoiCore2D.h.
| void vtkVoronoiCore2D< TCompositor, TClassifier >::TopologicalMerge::operator() | ( | vtkIdType | threadId, |
| vtkIdType | endThreadId ) |
| void vtkVoronoiCore2D< TCompositor, TClassifier >::TopologicalMerge::Reduce | ( | ) |
|
static |
| vtkVoronoiCore2D<TCompositor, TClassifier>* vtkVoronoiCore2D< TCompositor, TClassifier >::TopologicalMerge::VC |
Definition at line 430 of file vtkVoronoiCore2D.h.
| vtkMergeTuples2DType vtkVoronoiCore2D< TCompositor, TClassifier >::TopologicalMerge::MergeTuples |
Definition at line 433 of file vtkVoronoiCore2D.h.
| vtkMergeMapType vtkVoronoiCore2D< TCompositor, TClassifier >::TopologicalMerge::MergeMap |
Definition at line 434 of file vtkVoronoiCore2D.h.
| vtkIdType vtkVoronoiCore2D< TCompositor, TClassifier >::TopologicalMerge::NumMergedPts |
Definition at line 435 of file vtkVoronoiCore2D.h.