Saddle roof algorithm

Posted by user115621 on Stack Overflow See other posts from Stack Overflow or by user115621
Published on 2010-03-28T14:23:04Z Indexed on 2010/03/28 15:23 UTC
Read the original article Hit count: 471

Filed under:

Hello, I have map (openstreetmap project) with many buildings. Each building is a polygon. How can I make saddle roof parts polygons for every building outline?

Algorithm should transform one polygon in 2D to set of polygons in 2D (or 3D).

Reason for this transformation is visualization - better rendering isometric view.

For example (shading isn't important):

alt text

Thanks

© Stack Overflow or respective owner

Related posts about algorithm