Methods or apparatus for determining the capacity of containers or cavities, or the volume of solid bodies