simplify RealSpace generation
Simplifies the RealSpace (3D) generation.
The approach is to avoid the somehow complicated visitor pattern and go for a simple if-else. I know existing dogmas would dislike this, but looking at the code it is in this case by far more understandable and maintainable (at least in my opinion).