vtkSMPMergePoints does not merge points properly from multiple instances.
I have been trying to use the vtkSMPMergePoints
point locator to merge points in parallel, but I ran into an issue with it.
Attached is a trivial example which in it’s comments also describes our problem. I am only trying to merge points serially in the program for simplicity.
The example tries to merge the points from two instances of vtkSMPMergePoints
, into a third instance.
The data is very simple, the first locator has distinct points {(5,5,5), (6,6,6)}
, and the second has distinct points {(6,6,6), (7,7,7)}
The output of the merge is expected to be {(5,5,5), (6,6,6), {7,7,7}}
However, we get an output {(0,0,0), (5,5,5), (6,6,6)}
.
The problem was discussed with @berkgeveci, and we were provided with a diff to try. We noticed the diff did fix our problem, also attached is the diff.