View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015907VTK(No Category)public2015-12-27 03:422016-01-08 10:38
ReporterAndreas Buykx 
Assigned ToCory Quammen 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version6.3.0 
Target VersionFixed in Version7.1.0 
Summary0015907: vtkCellPicker incorrectly determines PointId
DescriptionThis code snippet below is from vtkCellPicker line 577.
It should set iMaxWeight to i for the point i with the largest weight, but instead it always sets iMaxWeight to the last i with a positive weight.

Solution: in the if-branch the line
  maxWeight = weights[i];
should be added...


      double maxWeight = 0;
      vtkIdType iMaxWeight = -1;
      for (vtkIdType i = 0; i < numPoints; i++)
        {
        if (weights[i] > maxWeight)
          {
          iMaxWeight = i;
          }
        }

TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0035621)
Andreas Buykx (reporter)
2015-12-30 06:22

fixed it in https://gitlab.kitware.com/vtk/vtk/merge_requests/1043 [^]

 Issue History
Date Modified Username Field Change
2015-12-27 03:42 Andreas Buykx New Issue
2015-12-30 06:22 Andreas Buykx Note Added: 0035621
2016-01-08 10:38 Cory Quammen Status backlog => closed
2016-01-08 10:38 Cory Quammen Assigned To => Cory Quammen
2016-01-08 10:38 Cory Quammen Resolution open => fixed
2016-01-08 10:38 Cory Quammen Fixed in Version => 7.1.0


Copyright © 2000 - 2018 MantisBT Team