Semantic Analysis and 3D Generation of Buildings and Cities