made progress generating elastic scene, porting C++
generateConfiguration function