Skip to content
Snippets Groups Projects
Commit fd8e15e7 authored by David Gobbi's avatar David Gobbi Committed by Lucas Givord
Browse files

Fix point weights in vtkCenterOfMass

The tuple, component indices into the weight array were reversed.

(cherry picked from commit 7a12eaf8)
parent e9c4a1f0
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ void vtkCenterOfMass::ComputeCenterOfMass(
double point[3];
points->GetPoint(i, point);
double weight = scalars->GetComponent(0, i);
double weight = scalars->GetComponent(i, 0);
weightTotal += weight;
vtkMath::MultiplyScalar(point, weight);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment