Setup for 'as-you-go' processing and build framework for buildSpheres(), a mesh function