POV-Ray : Newsgroups : povray.binaries.images : Looking at cities again : Looking at cities again Server Time
30 Jul 2024 04:21:40 EDT (-0400)
  Looking at cities again  
From: Bill Pragnell
Date: 2 Dec 2012 19:05:01
Message: <web.50bbec4030457a1e51586490@news.povray.org>
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


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.