1. Base 3D model is modelled in 3DsMax and exported to Blender;
2. Blender script processes that model and generates data for 3D labyrinth generator;
3. Generator reads model data and generates labyrinth;
4. 3DsMax script reads labyrinth data and recreates it using boxes.
Labyrinth generator is a standalone program, data to/from 3DsMax and Blender is transferred using scripts (MaxScript, Python).