Skip to content

This project is aimed at developing a fully functional feature city without disrupting the ecological density of the city.It is a further modification of the initial city generation model.

License

Notifications You must be signed in to change notification settings

kritika-srivastava/The-Conurbation-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Conurbation Algorithm

This project is aimed at developing a fully functional featured city without disrupting the ecological density of the city.It is a further modification of the initial city generation model.

licenseProject StatusProject Status: Active – The project has reached a stable, usable state and is being actively developed.

Python BadgeDependency

Challenges :

  • Migrating the the code from PyQt4 to PyQt5 and updating the code with the new dependencies.
  • Automating the Blender Scripts to run directly from the PyQt5 GUI.
  • Cleaning the code to remove all the version conflicts.
  • Generating the new map to run the test scripts.
  • Updating and modifying the codes for growth rules.

Input -

The input to the conurbation algorithm is the map generated from the project Land Stratification.

The growth rule image defines the formation of road network of the town. Blue color implies a radial growth rule, red colour indicates grid growth rule and green colour depicts organic(random) growth rule.

Dependencies -

  • Python 3.x
  • Numpy
  • matplotlib
  • Blender
  • PyQt5
  • Scipy

Workflow -

Steps to replicate the Program

  • Clone this repository
  • Change all the paths in the files GUI.py and blenderize.py.
  • Remove all the pycache files from the cloned folder if present.
  • Check all the installed dependencies.
  • Install and add blender to the environment path.
  • Run the script GUI.py.

If everything worked so far, the PyQt5 window should openup and the algorithm should generate the city with the clicks.Make sure to run all the tabs in order,i.e., Roadmap Generation-> Polygon Extraction -> Building Generation ->Visualise in Blender.

Feel free to experiment with growth rule images and Density images and open a pull request for further modification of the project.

Sample Outputs-

1. Roadmap Generation

2. Polygon Extraction

3. Building Generation

4. 3D Visualisation of Buildings in Blender

References -

About

This project is aimed at developing a fully functional feature city without disrupting the ecological density of the city.It is a further modification of the initial city generation model.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages