diff --git a/ShoulderCase/@Glenoid/measureCenter.m b/ShoulderCase/@Glenoid/measureCenter.m index 8c3e77d..2926319 100644 --- a/ShoulderCase/@Glenoid/measureCenter.m +++ b/ShoulderCase/@Glenoid/measureCenter.m @@ -1,7 +1,7 @@ function measureCenter(obj) % Glenoid center is the closet point between the mean of the extracted % surface and all the points of the extracted surface. - surfacePointsToMeanPoint = obj.surface.points - obj.surface.meanPoint; - centerIndex = findShortest3DVector(surfacePointsToMeanPoint); + surfacePointsFromMeanPoint = obj.surface.points - obj.surface.meanPoint; + centerIndex = findShortest3DVector(surfacePointsFromMeanPoint); obj.center = obj.surface.points(centerIndex,:); end