Update shapes.cpp

Updated as per issue reported here: https://github.com/PointCloudLibrary/pcl/issues/866#issuecomment-53691601