Clamp tube-geometry detail level. Handle negative error values.