diff --git a/ShoulderCase/@Scapula/measureCoordinateSystem.m b/ShoulderCase/@Scapula/measureCoordinateSystem.m index ae910c5..8c0ef6f 100644 --- a/ShoulderCase/@Scapula/measureCoordinateSystem.m +++ b/ShoulderCase/@Scapula/measureCoordinateSystem.m @@ -1,14 +1,9 @@ function output = measureCoordinateSystem(obj) try obj.setCoordinateSystemWithLandmarks(); catch ME warning(ME.message); - output = 0; + output = false; end - - % To enable retro compatibility with scapula.coordSysSet former - % implementation, the two following commands are called here - obj.setShoulderSideWithCoordinateSystem; - obj.angulusInferiorLocal = obj.coordSys.express(obj.angulusInferior); - output = 1; + output = true; end \ No newline at end of file diff --git a/ShoulderCase/@Scapula/setShoulderSideWithCoordinateSystem.m b/ShoulderCase/@Scapula/setShoulderSideWithCoordinateSystem.m deleted file mode 100644 index 352fca0..0000000 --- a/ShoulderCase/@Scapula/setShoulderSideWithCoordinateSystem.m +++ /dev/null @@ -1,12 +0,0 @@ -function setShoulderSideWithCoordinateSystem(obj) - % The scapula coordinate system is right-handed for the right shoulder only - if obj.coordSys.isRightHanded - obj.shoulder.side = 'R'; - return - elseif obj.coordSys.isLeftHanded - obj.shoulder.side = 'L'; - return - end - warning(['Couldn''t find the shoulder side by evaluating the scapula',... - 'coordinate system.']); -end \ No newline at end of file