|
![](/i/fill.gif) |
Not posted any images for a while, so here's a current intermittent work in
progress that's just about worth sharing.
Cities are largely defined by their street plans, so I thought it would be nice
to be able to intersect a list of lines to produce city blocks.
So far I have a fairly inelegant macro to find triangles and quads from an
arbitrary list of lines, an incomplete set of macros to make city blocks from
arbitrary polygons, and the beginnings of some macros to make buildings from
arbitrary polygon floorplans. If any block polygons are too small, they are
either filled with a single building or omitted entirely (useful for plazas and
suchlike). I really need an intermediate option, to fill a medium-sized block
with 3 or 4 buildings instead of looping around the edges.
I've also plotted the lines to make the process clear.
As always with such things, most of the fun is in the coding, so I fully
anticipate to never fully finish this project, but hopefully it should produce
some interesting images along the way :-)
Bill
Post a reply to this message
Attachments:
Download 'city_blocks.jpg' (145 KB)
Preview of image 'city_blocks.jpg'
![city_blocks.jpg](/povray.binaries.images/attachment/%3Cweb.50bbec4030457a1e51586490%40news.povray.org%3E/city_blocks.jpg?preview=1)
|
![](/i/fill.gif) |