In I Built 101 Indian Monuments in the Browser Using Only Code (No 3D Models), DEV author @amananandrai describes building 101 architectural models for a browser map. The project's models are generated by JavaScript. The author uses the Qutub Minar to explain how a collection of simple meshes can convey the silhouette and details of a building.
Geometry carries the silhouette
The article describes the Qutub Minar model as stacked tapered cylinders with balconies and a pavilion. A small radial displacement along the circumference gives the tiers flutes. The same operation can produce a different profile by changing the wave that determines how far each point moves. That leaves the larger pieces of the composition in place while changing the surface shape of the tier.
Other details can be reused across models. The author describes rotating a two-dimensional profile around an axis to make a dome and using a common collection of architectural helpers. Those helpers make the per-building code a record of which pieces are present and where they belong. For a catalog adding one model at a time, that makes it possible to expand the set while keeping the geometry for recurring shapes in one place.
A common material scale across meshes
The author says the shader calculates procedural material patterns in space, so a stone block pattern can have a comparable scale across separate parts. That choice matters when a building is assembled from many meshes. A material mapped separately to each piece would call for decisions about orientation and scale each time a new piece is added. Here the stone, brick, and other surface effects share a rendering approach, while geometry handles the structure.
The project source loads Three.js through an import map in the HTML entry point. The author describes running the site without a bundling step. The models are illustrative interpretations of buildings. For another collection built this way, which details would you put in the mesh because they affect the silhouette, and which would you leave to the material?