Filter function for cube coordinates. Returns true if the cube should be included in the result.
typedef CubeFilter = bool Function(Cube cube);